generated from saboyutaka/ruby3-rails7-devcontainer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
solargraph_rails.rb
146 lines (146 loc) · 6.79 KB
/
solargraph_rails.rb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
# See: https://solargraph.org/guides/rails
# See: https://gist.github.com/castwide/28b349566a223dfb439a337aea29713e
#
# 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::Aggregations
# extend ActiveRecord::Aggregations::ClassMethods
# extend ActiveRecord::Batches
# extend ActiveRecord::Calculations
# extend ActiveRecord::Callbacks
# extend ActiveRecord::Coders
# extend ActiveRecord::ConnectionAdapters
# extend ActiveRecord::ConnectionAdapters::AbstractPool
# extend ActiveRecord::ConnectionAdapters::ColumnMethods
# extend ActiveRecord::ConnectionAdapters::DatabaseLimits
# extend ActiveRecord::ConnectionAdapters::DatabaseStatements
# extend ActiveRecord::ConnectionAdapters::DetermineIfPreparableVisitor
# extend ActiveRecord::ConnectionAdapters::MySQL
# extend ActiveRecord::ConnectionAdapters::MySQL::ColumnMethods
# extend ActiveRecord::ConnectionAdapters::MySQL::DatabaseStatements
# extend ActiveRecord::ConnectionAdapters::MySQL::Quoting
# extend ActiveRecord::ConnectionAdapters::MySQL::SchemaStatements
# extend ActiveRecord::ConnectionAdapters::PostgreSQL
# extend ActiveRecord::ConnectionAdapters::PostgreSQL::ColumnMethods
# extend ActiveRecord::ConnectionAdapters::PostgreSQL::DatabaseStatements
# extend ActiveRecord::ConnectionAdapters::PostgreSQL::Quoting
# extend ActiveRecord::ConnectionAdapters::PostgreSQL::SchemaStatements
# extend ActiveRecord::ConnectionAdapters::PostgreSQL::OID
# extend ActiveRecord::ConnectionAdapters::PostgreSQL::ReferentialIntegrity
# extend ActiveRecord::ConnectionAdapters::PostgreSQL::Utils
# extend ActiveRecord::ConnectionAdapters::QueryCache
# extend ActiveRecord::ConnectionAdapters::QueryCache::ConnectionPoolConfiguration
# extend ActiveRecord::ConnectionAdapters::Quoting
# extend ActiveRecord::ConnectionAdapters::Savepoints
# extend ActiveRecord::ConnectionAdapters::SQLite3
# extend ActiveRecord::ConnectionAdapters::SQLite3::DatabaseStatements
# extend ActiveRecord::ConnectionAdapters::SQLite3::Quoting
# extend ActiveRecord::ConnectionAdapters::SQLite3::SchemaStatements
# extend ActiveRecord::ConnectionAdapters::SchemaStatements
# extend ActiveRecord::ConnectionHandling
# extend ActiveRecord::Core
# extend ActiveRecord::Core::ClassMethods
# extend ActiveRecord::CounterCache
# extend ActiveRecord::CounterCache::ClassMethods
# extend ActiveRecord::DefineCallbacks
# extend ActiveRecord::DefineCallbacks::ClassMethods
# extend ActiveRecord::Delegation::ClassMethods
# extend ActiveRecord::Delegation::ClassSpecificRelation
# extend ActiveRecord::Delegation::ClassSpecificRelation::ClassMethods
# extend ActiveRecord::Delegation::DelegateCache
# extend ActiveRecord::DynamicMatchers
# extend ActiveRecord::Enum
# extend ActiveRecord::Explain
# extend ActiveRecord::FinderMethods
# extend ActiveRecord::Generators
# extend ActiveRecord::Generators::Migration
# extend ActiveRecord::Generators::Migration::ClassMethods
# extend ActiveRecord::Inheritance
# extend ActiveRecord::Inheritance::ClassMethods
# extend ActiveRecord::Integration
# extend ActiveRecord::Integration::ClassMethods
# extend ActiveRecord::LegacyYamlAdapter
# extend ActiveRecord::LegacyYamlAdapter::Rails41
# extend ActiveRecord::LegacyYamlAdapter::Rails420::
# extend ActiveRecord::Locking
# extend ActiveRecord::Locking::Optimistic
# extend ActiveRecord::Locking::Optimistic::ClassMethods
# extend ActiveRecord::Locking::Pessimistic
# extend ActiveRecord::Middleware
# extend ActiveRecord::ModelSchema
# extend ActiveRecord::ModelSchema::ClassMethods
# extend ActiveRecord::NestedAttributes
# extend ActiveRecord::NoTouching
# extend ActiveRecord::NoTouching::ClassMethods
# extend ActiveRecord::NullRelation
# extend ActiveRecord::Persistence
# extend ActiveRecord::Persistence::ClassMethods
# extend ActiveRecord::Querying
# extend ActiveRecord::QueryMethods
# extend ActiveRecord::Railties
# extend ActiveRecord::Railties::CollectionCacheAssociationLoading
# extend ActiveRecord::Railties::ControllerRuntime
# extend ActiveRecord::Railties::ControllerRuntime::ClassMethods
# extend ActiveRecord::ReadonlyAttributes
# extend ActiveRecord::ReadonlyAttributes::ClassMethods
# extend ActiveRecord::Reflection
# extend ActiveRecord::Reflection::ClassMethods
# extend ActiveRecord::Sanitization
# extend ActiveRecord::Sanitization::ClassMethods
# extend ActiveRecord::Scoping::ClassMethods
# extend ActiveRecord::Scoping::Default
# extend ActiveRecord::Scoping::Default::ClassMethods
# extend ActiveRecord::Scoping::Named
# extend ActiveRecord::Scoping::Named::ClassMethods
# extend ActiveRecord::SecureToken
# extend ActiveRecord::SecureToken::ClassMethods
# extend ActiveRecord::Serialization
# extend ActiveRecord::SpawnMethods
# extend ActiveRecord::Store
# extend ActiveRecord::Store::ClassMethods
# extend ActiveRecord::Suppressor
# extend ActiveRecord::Suppressor::ClassMethods
# extend ActiveRecord::Tasks
# extend ActiveRecord::Tasks::DatabaseTasks
# extend ActiveRecord::TestDatabases
# extend ActiveRecord::TestFixtures
# extend ActiveRecord::TestFixtures::ClassMethods
# extend ActiveRecord::Timestamp
# extend ActiveRecord::Timestamp::ClassMethods
# extend ActiveRecord::TouchLater
# extend ActiveRecord::Transactions
# extend ActiveRecord::Transactions::ClassMethods
# extend ActiveRecord::Translation
# extend ActiveRecord::Type
# extend ActiveRecord::Type::Internal
# extend ActiveRecord::Type::Internal::Timezone
# extend ActiveRecord::TypeCaster
# extend ActiveRecord::Validations
# extend ActiveRecord::Validations::Callbacks
# extend ActiveRecord::Validations::ClassMethods
# extend ActiveRecord::Validations::Clusivity
# extend ActiveRecord::VERSION
# end
# @!override ActiveRecord::FinderMethods#find
# @overload find(id)
# @param id [Integer]
# @return [self]
# @overload find(list)
# @param list [Array]
# @return [Array<self>]
# @overload find(*args)
# @return [Array<self>]
# @return [self, Array<self>]