Skip to content

Instantly share code, notes, and snippets.

@ali-p-q
ali-p-q / definitions.rb
Created December 31, 2022 13:32
Definitions file for solargraph-rails adding all methods from ActiveModel and Ruby's standard library
# The following comments fill some of the gaps in Solargraph's understanding of
# Rails apps. Since they're all in YARD, they get mapped in Solargraph but
# ignored at runtime.
#
# You can put this file anywhere in the project, as long as it gets included in
# the workspace maps. It's recommended that you keep it in a standalone file
# instead of pasting it into an existing one.
#
# @!parse
# class ActionController::Base