diff --git a/config/definitions.rb b/config/definitions.rb new file mode 100644 index 0000000..0f830d3 --- /dev/null +++ b/config/definitions.rb @@ -0,0 +1,31 @@ +# 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 +# include ActionController::MimeResponds +# extend ActiveSupport::Callbacks::ClassMethods +# extend AbstractController::Callbacks::ClassMethods +# end +# class ActiveRecord::Base +# extend ActiveRecord::QueryMethods +# extend ActiveRecord::FinderMethods +# extend ActiveRecord::Associations::ClassMethods +# extend ActiveRecord::Inheritance::ClassMethods +# include ActiveRecord::Persistence +# end +# @!override ActiveRecord::FinderMethods#find +# @overload find(id) +# @param id [Integer] +# @return [self] +# @overload find(list) +# @param list [Array] +# @return [Array] +# @overload find(*args) +# @return [Array] +# @return [self, Array] \ No newline at end of file