phlex-stimulus 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (147) hide show
  1. checksums.yaml +7 -0
  2. data/.ruby-version +1 -0
  3. data/CHANGELOG.md +16 -0
  4. data/LICENSE.txt +21 -0
  5. data/README.md +341 -0
  6. data/Rakefile +12 -0
  7. data/lib/generators/phlex/stimulus/controller/USAGE +5 -0
  8. data/lib/generators/phlex/stimulus/controller/controller_generator.rb +49 -0
  9. data/lib/generators/phlex/stimulus/controller/templates/component.rb.erb +30 -0
  10. data/lib/generators/phlex/stimulus/controller/templates/controller.ts.erb +23 -0
  11. data/lib/generators/phlex/stimulus/generator_mixin.rb +21 -0
  12. data/lib/generators/phlex/stimulus/install/USAGE +5 -0
  13. data/lib/generators/phlex/stimulus/install/install_generator.rb +111 -0
  14. data/lib/generators/phlex/stimulus/install/templates/app/components/base.rb.erb +29 -0
  15. data/lib/generators/phlex/stimulus/install/templates/app/components/chain_controller.rb.erb +29 -0
  16. data/lib/generators/phlex/stimulus/install/templates/app/components/classlist_controller.rb.erb +30 -0
  17. data/lib/generators/phlex/stimulus/install/templates/app/components/controller.rb.erb +10 -0
  18. data/lib/generators/phlex/stimulus/install/templates/app/components/controller_chain.rb.erb +32 -0
  19. data/lib/generators/phlex/stimulus/install/templates/app/components/controller_template.rb.erb +24 -0
  20. data/lib/generators/phlex/stimulus/install/templates/app/components/log_controller.rb.erb +33 -0
  21. data/lib/generators/phlex/stimulus/install/templates/app/components/sleep_controller.rb.erb +30 -0
  22. data/lib/generators/phlex/stimulus/install/templates/app/components.rb.erb +7 -0
  23. data/lib/generators/phlex/stimulus/install/templates/app/javascript/application.ts.erb +5 -0
  24. data/lib/generators/phlex/stimulus/install/templates/app/javascript/controllers/application.ts.erb +10 -0
  25. data/lib/generators/phlex/stimulus/install/templates/app/javascript/controllers/chain_controller.ts.erb +32 -0
  26. data/lib/generators/phlex/stimulus/install/templates/app/javascript/controllers/chainable_controller.ts.erb +44 -0
  27. data/lib/generators/phlex/stimulus/install/templates/app/javascript/controllers/classlist_controller.ts.erb +30 -0
  28. data/lib/generators/phlex/stimulus/install/templates/app/javascript/controllers/index.ts.erb +4 -0
  29. data/lib/generators/phlex/stimulus/install/templates/app/javascript/controllers/log_controller.ts.erb +25 -0
  30. data/lib/generators/phlex/stimulus/install/templates/app/javascript/controllers/sleep_controller.ts.erb +19 -0
  31. data/lib/generators/phlex/stimulus/install/templates/app/javascript/controllers/typed_controller.ts.erb +53 -0
  32. data/lib/generators/phlex/stimulus/install/templates/app/javascript/utils/misc.ts.erb +37 -0
  33. data/lib/generators/phlex/stimulus/install/templates/app/javascript/utils/template.ts.erb +11 -0
  34. data/lib/phlex/stimulus/components/base.rb +81 -0
  35. data/lib/phlex/stimulus/components/controller.rb +170 -0
  36. data/lib/phlex/stimulus/components.rb +9 -0
  37. data/lib/phlex/stimulus/version.rb +8 -0
  38. data/lib/phlex/stimulus.rb +15 -0
  39. data/sorbet/config +7 -0
  40. data/sorbet/rbi/annotations/.gitattributes +1 -0
  41. data/sorbet/rbi/annotations/actionmailer.rbi +15 -0
  42. data/sorbet/rbi/annotations/actionpack.rbi +430 -0
  43. data/sorbet/rbi/annotations/actionview.rbi +75 -0
  44. data/sorbet/rbi/annotations/activejob.rbi +50 -0
  45. data/sorbet/rbi/annotations/activemodel.rbi +119 -0
  46. data/sorbet/rbi/annotations/activerecord.rbi +172 -0
  47. data/sorbet/rbi/annotations/activesupport.rbi +561 -0
  48. data/sorbet/rbi/annotations/globalid.rbi +30 -0
  49. data/sorbet/rbi/annotations/minitest.rbi +116 -0
  50. data/sorbet/rbi/annotations/railties.rbi +104 -0
  51. data/sorbet/rbi/annotations/rainbow.rbi +269 -0
  52. data/sorbet/rbi/dsl/.gitattributes +1 -0
  53. data/sorbet/rbi/dsl/active_support/callbacks.rbi +21 -0
  54. data/sorbet/rbi/gems/.gitattributes +1 -0
  55. data/sorbet/rbi/gems/action_text-trix@2.1.19.rbi +9 -0
  56. data/sorbet/rbi/gems/actioncable@8.1.3.rbi +9 -0
  57. data/sorbet/rbi/gems/actionmailbox@8.1.3.rbi +9 -0
  58. data/sorbet/rbi/gems/actionmailer@8.1.3.rbi +9 -0
  59. data/sorbet/rbi/gems/actionpack@8.1.3.rbi +20478 -0
  60. data/sorbet/rbi/gems/actiontext@8.1.3.rbi +9 -0
  61. data/sorbet/rbi/gems/actionview@8.1.3.rbi +14722 -0
  62. data/sorbet/rbi/gems/activejob@8.1.3.rbi +9 -0
  63. data/sorbet/rbi/gems/activemodel@8.1.3.rbi +9 -0
  64. data/sorbet/rbi/gems/activerecord@8.1.3.rbi +9 -0
  65. data/sorbet/rbi/gems/activestorage@8.1.3.rbi +9 -0
  66. data/sorbet/rbi/gems/activesupport@8.1.3.rbi +20153 -0
  67. data/sorbet/rbi/gems/ast@2.4.3.rbi +550 -0
  68. data/sorbet/rbi/gems/base64@0.3.0.rbi +545 -0
  69. data/sorbet/rbi/gems/benchmark@0.5.0.rbi +621 -0
  70. data/sorbet/rbi/gems/booleans@0.1.3.rbi +31 -0
  71. data/sorbet/rbi/gems/builder@3.3.0.rbi +9 -0
  72. data/sorbet/rbi/gems/byebug@12.0.0.rbi +49 -0
  73. data/sorbet/rbi/gems/concurrent-ruby@1.3.8.rbi +10656 -0
  74. data/sorbet/rbi/gems/connection_pool@3.0.2.rbi +9 -0
  75. data/sorbet/rbi/gems/crass@1.0.7.rbi +648 -0
  76. data/sorbet/rbi/gems/date@3.5.1.rbi +391 -0
  77. data/sorbet/rbi/gems/drb@2.2.3.rbi +9 -0
  78. data/sorbet/rbi/gems/erb@6.0.6.rbi +1600 -0
  79. data/sorbet/rbi/gems/erubi@1.13.1.rbi +155 -0
  80. data/sorbet/rbi/gems/globalid@1.4.0.rbi +9 -0
  81. data/sorbet/rbi/gems/i18n@1.15.2.rbi +2285 -0
  82. data/sorbet/rbi/gems/io-console@0.8.2.rbi +9 -0
  83. data/sorbet/rbi/gems/json@2.21.1.rbi +2289 -0
  84. data/sorbet/rbi/gems/lint_roller@1.1.0.rbi +189 -0
  85. data/sorbet/rbi/gems/logger@1.7.0.rbi +896 -0
  86. data/sorbet/rbi/gems/loofah@2.25.2.rbi +1134 -0
  87. data/sorbet/rbi/gems/mail@2.9.1.rbi +9 -0
  88. data/sorbet/rbi/gems/marcel@1.2.1.rbi +9 -0
  89. data/sorbet/rbi/gems/mini_mime@1.1.5.rbi +9 -0
  90. data/sorbet/rbi/gems/minitest@6.0.6.rbi +1482 -0
  91. data/sorbet/rbi/gems/net-imap@0.6.4.1.rbi +9 -0
  92. data/sorbet/rbi/gems/net-pop@0.1.2.rbi +9 -0
  93. data/sorbet/rbi/gems/net-protocol@0.2.2.rbi +244 -0
  94. data/sorbet/rbi/gems/net-smtp@0.5.1.rbi +9 -0
  95. data/sorbet/rbi/gems/netrc@0.11.0.rbi +147 -0
  96. data/sorbet/rbi/gems/nio4r@2.7.5.rbi +9 -0
  97. data/sorbet/rbi/gems/nokogiri@1.19.4.rbi +8168 -0
  98. data/sorbet/rbi/gems/parallel@1.28.0.rbi +270 -0
  99. data/sorbet/rbi/gems/phlex-rails@2.4.0.rbi +1945 -0
  100. data/sorbet/rbi/gems/phlex@2.4.1.rbi +1413 -0
  101. data/sorbet/rbi/gems/pp@0.6.4.rbi +387 -0
  102. data/sorbet/rbi/gems/prettyprint@0.2.0.rbi +455 -0
  103. data/sorbet/rbi/gems/prism@1.9.0.rbi +42226 -0
  104. data/sorbet/rbi/gems/racc@1.8.1.rbi +165 -0
  105. data/sorbet/rbi/gems/rack-session@2.1.2.rbi +756 -0
  106. data/sorbet/rbi/gems/rack-test@2.2.0.rbi +681 -0
  107. data/sorbet/rbi/gems/rack@3.2.6.rbi +4653 -0
  108. data/sorbet/rbi/gems/rackup@2.3.1.rbi +9 -0
  109. data/sorbet/rbi/gems/rails-dom-testing@2.3.0.rbi +517 -0
  110. data/sorbet/rbi/gems/rails-html-sanitizer@1.7.1.rbi +620 -0
  111. data/sorbet/rbi/gems/rails@8.1.3.rbi +9 -0
  112. data/sorbet/rbi/gems/railties@8.1.3.rbi +3507 -0
  113. data/sorbet/rbi/gems/rainbow@3.1.1.rbi +362 -0
  114. data/sorbet/rbi/gems/rake@13.4.2.rbi +3130 -0
  115. data/sorbet/rbi/gems/rbi@0.4.0.rbi +5706 -0
  116. data/sorbet/rbi/gems/rbs@4.0.3.rbi +6908 -0
  117. data/sorbet/rbi/gems/refract@1.1.0.rbi +9 -0
  118. data/sorbet/rbi/gems/reline@0.6.3.rbi +2446 -0
  119. data/sorbet/rbi/gems/require-hooks@0.4.0.rbi +152 -0
  120. data/sorbet/rbi/gems/rexml@3.4.4.rbi +4905 -0
  121. data/sorbet/rbi/gems/rubocop-espago@1.3.0.rbi +9 -0
  122. data/sorbet/rbi/gems/ruby-progressbar@1.13.0.rbi +988 -0
  123. data/sorbet/rbi/gems/rubydex@0.2.9.rbi +841 -0
  124. data/sorbet/rbi/gems/securerandom@0.4.1.rbi +75 -0
  125. data/sorbet/rbi/gems/shoulda-context@2.0.0.rbi +544 -0
  126. data/sorbet/rbi/gems/spoom@1.8.4.rbi +6738 -0
  127. data/sorbet/rbi/gems/tapioca@0.19.2.rbi +3599 -0
  128. data/sorbet/rbi/gems/thor@1.5.0.rbi +3870 -0
  129. data/sorbet/rbi/gems/timeout@0.6.1.rbi +200 -0
  130. data/sorbet/rbi/gems/tsort@0.2.0.rbi +389 -0
  131. data/sorbet/rbi/gems/tzinfo@2.0.6.rbi +5474 -0
  132. data/sorbet/rbi/gems/unicode-display_width@3.2.0.rbi +130 -0
  133. data/sorbet/rbi/gems/unicode-emoji@4.2.0.rbi +332 -0
  134. data/sorbet/rbi/gems/uri@1.1.1.rbi +2402 -0
  135. data/sorbet/rbi/gems/useragent@0.16.11.rbi +9 -0
  136. data/sorbet/rbi/gems/websocket-driver@0.8.2.rbi +9 -0
  137. data/sorbet/rbi/gems/websocket-extensions@0.1.5.rbi +9 -0
  138. data/sorbet/rbi/gems/zeitwerk@2.8.2.rbi +9 -0
  139. data/sorbet/rbi/shims/gems/parser.rbi +12 -0
  140. data/sorbet/rbi/shims/gems/rails.rbi +55 -0
  141. data/sorbet/rbi/shims/gems/refract.rbi +13 -0
  142. data/sorbet/rbi/shims/gems/shoulda-context.rbi +16 -0
  143. data/sorbet/tapioca/compilers/phlex_controller.rb +80 -0
  144. data/sorbet/tapioca/config.yml +26 -0
  145. data/sorbet/tapioca/extensions/load_gem.rb +1 -0
  146. data/sorbet/tapioca/require.rb +4 -0
  147. metadata +266 -0
@@ -0,0 +1,3507 @@
1
+ # typed: true
2
+
3
+ # DO NOT EDIT MANUALLY
4
+ # This is an autogenerated file for types exported from the `railties` gem.
5
+ # Please instead update this file by running `bin/tapioca gem railties`.
6
+
7
+
8
+ # :include: ../README.rdoc
9
+ # :enddoc:
10
+ # :enddoc:
11
+ #
12
+ # pkg:gem/railties#lib/rails/gem_version.rb:3
13
+ module Rails
14
+ extend ::ActiveSupport::Autoload
15
+ extend ::ActiveSupport::Benchmarkable
16
+
17
+ class << self
18
+ # pkg:gem/railties#lib/rails.rb:43
19
+ def app_class; end
20
+
21
+ # pkg:gem/railties#lib/rails.rb:43
22
+ def app_class=(_arg0); end
23
+
24
+ # pkg:gem/railties#lib/rails.rb:44
25
+ def application; end
26
+
27
+ # pkg:gem/railties#lib/rails.rb:42
28
+ def application=(_arg0); end
29
+
30
+ # pkg:gem/railties#lib/rails.rb:133
31
+ def autoloaders; end
32
+
33
+ # pkg:gem/railties#lib/rails.rb:55
34
+ def backtrace_cleaner; end
35
+
36
+ # pkg:gem/railties#lib/rails.rb:43
37
+ def cache; end
38
+
39
+ # pkg:gem/railties#lib/rails.rb:43
40
+ def cache=(_arg0); end
41
+
42
+ # The Configuration instance used to configure the \Rails environment
43
+ #
44
+ # pkg:gem/railties#lib/rails.rb:51
45
+ def configuration; end
46
+
47
+ # pkg:gem/railties#lib/rails/deprecator.rb:4
48
+ def deprecator; end
49
+
50
+ # Returns the current \Rails environment.
51
+ #
52
+ # Rails.env # => "development"
53
+ # Rails.env.development? # => true
54
+ # Rails.env.production? # => false
55
+ # Rails.env.local? # => true true for "development" and "test", false for anything else
56
+ #
57
+ # pkg:gem/railties#lib/rails.rb:74
58
+ def env; end
59
+
60
+ # Sets the \Rails environment.
61
+ #
62
+ # Rails.env = "staging" # => "staging"
63
+ #
64
+ # pkg:gem/railties#lib/rails.rb:81
65
+ def env=(environment); end
66
+
67
+ # Returns the ActiveSupport::ErrorReporter of the current \Rails project,
68
+ # otherwise it returns +nil+ if there is no project.
69
+ #
70
+ # Rails.error.handle(IOError) do
71
+ # # ...
72
+ # end
73
+ # Rails.error.report(error)
74
+ #
75
+ # pkg:gem/railties#lib/rails.rb:92
76
+ def error; end
77
+
78
+ # Returns the ActiveSupport::EventReporter of the current \Rails project,
79
+ # otherwise it returns +nil+ if there is no project.
80
+ #
81
+ # Rails.event.notify("my_event", { message: "Hello, world!" })
82
+ #
83
+ # pkg:gem/railties#lib/rails.rb:100
84
+ def event; end
85
+
86
+ # Returns the currently loaded version of \Rails as a +Gem::Version+.
87
+ #
88
+ # pkg:gem/railties#lib/rails/gem_version.rb:5
89
+ def gem_version; end
90
+
91
+ # Returns all \Rails groups for loading based on:
92
+ #
93
+ # * The \Rails environment;
94
+ # * The environment variable RAILS_GROUPS;
95
+ # * The optional envs given as argument and the hash with group dependencies;
96
+ #
97
+ # Rails.groups assets: [:development, :test]
98
+ # # => [:default, "development", :assets] for Rails.env == "development"
99
+ # # => [:default, "production"] for Rails.env == "production"
100
+ #
101
+ # pkg:gem/railties#lib/rails.rb:113
102
+ def groups(*groups); end
103
+
104
+ # pkg:gem/railties#lib/rails.rb:48
105
+ def initialize!(*_arg0, **_arg1, &_arg2); end
106
+
107
+ # pkg:gem/railties#lib/rails.rb:48
108
+ def initialized?(*_arg0, **_arg1, &_arg2); end
109
+
110
+ # pkg:gem/railties#lib/rails.rb:43
111
+ def logger; end
112
+
113
+ # pkg:gem/railties#lib/rails.rb:43
114
+ def logger=(_arg0); end
115
+
116
+ # Returns a Pathname object of the public folder of the current
117
+ # \Rails project, otherwise it returns +nil+ if there is no project:
118
+ #
119
+ # Rails.public_path
120
+ # # => #<Pathname:/Users/someuser/some/path/project/public>
121
+ #
122
+ # pkg:gem/railties#lib/rails.rb:129
123
+ def public_path; end
124
+
125
+ # Returns a Pathname object of the current \Rails project,
126
+ # otherwise it returns +nil+ if there is no project:
127
+ #
128
+ # Rails.root
129
+ # # => #<Pathname:/Users/someuser/some/path/project>
130
+ #
131
+ # pkg:gem/railties#lib/rails.rb:64
132
+ def root; end
133
+
134
+ # Returns the currently loaded version of \Rails as a string.
135
+ #
136
+ # pkg:gem/railties#lib/rails/version.rb:7
137
+ def version; end
138
+ end
139
+ end
140
+
141
+ # An Engine with the responsibility of coordinating the whole boot process.
142
+ #
143
+ # == Initialization
144
+ #
145
+ # Rails::Application is responsible for executing all railties and engines
146
+ # initializers. It also executes some bootstrap initializers (check
147
+ # Rails::Application::Bootstrap) and finishing initializers, after all the others
148
+ # are executed (check Rails::Application::Finisher).
149
+ #
150
+ # == \Configuration
151
+ #
152
+ # Besides providing the same configuration as Rails::Engine and Rails::Railtie,
153
+ # the application object has several specific configurations, for example
154
+ # +enable_reloading+, +consider_all_requests_local+, +filter_parameters+,
155
+ # +logger+, and so forth.
156
+ #
157
+ # Check Rails::Application::Configuration to see them all.
158
+ #
159
+ # == Routes
160
+ #
161
+ # The application object is also responsible for holding the routes and reloading routes
162
+ # whenever the files change in development.
163
+ #
164
+ # == Middlewares
165
+ #
166
+ # The Application is also responsible for building the middleware stack.
167
+ #
168
+ # == Booting process
169
+ #
170
+ # The application is also responsible for setting up and executing the booting
171
+ # process. From the moment you require <tt>config/application.rb</tt> in your app,
172
+ # the booting process goes like this:
173
+ #
174
+ # 1. <tt>require "config/boot.rb"</tt> to set up load paths.
175
+ # 2. +require+ railties and engines.
176
+ # 3. Define +Rails.application+ as <tt>class MyApp::Application < Rails::Application</tt>.
177
+ # 4. Run +config.before_configuration+ callbacks.
178
+ # 5. Load <tt>config/environments/ENV.rb</tt>.
179
+ # 6. Run +config.before_initialize+ callbacks.
180
+ # 7. Run <tt>Railtie#initializer</tt> defined by railties, engines, and application.
181
+ # One by one, each engine sets up its load paths and routes, and runs its <tt>config/initializers/*</tt> files.
182
+ # 8. Custom <tt>Railtie#initializers</tt> added by railties, engines, and applications are executed.
183
+ # 9. Build the middleware stack and run +to_prepare+ callbacks.
184
+ # 10. Run +config.before_eager_load+ and +eager_load!+ if +eager_load+ is +true+.
185
+ # 11. Run +config.after_initialize+ callbacks.
186
+ #
187
+ # pkg:gem/railties#lib/rails/application.rb:60
188
+ class Rails::Application < ::Rails::Engine
189
+ # pkg:gem/railties#lib/rails/application.rb:107
190
+ def initialize(initial_variable_values = T.unsafe(nil), &block); end
191
+
192
+ # pkg:gem/railties#lib/rails/application.rb:98
193
+ def assets; end
194
+
195
+ # pkg:gem/railties#lib/rails/application.rb:98
196
+ def assets=(_arg0); end
197
+
198
+ # pkg:gem/railties#lib/rails/application.rb:100
199
+ def autoloaders; end
200
+
201
+ # pkg:gem/railties#lib/rails/application.rb:560
202
+ def build_middleware_stack; end
203
+
204
+ # pkg:gem/railties#lib/rails/application.rb:453
205
+ def config; end
206
+
207
+ # pkg:gem/railties#lib/rails/application.rb:457
208
+ def config=(_arg0); end
209
+
210
+ # Convenience for loading config/foo.yml for the current \Rails env.
211
+ # Example:
212
+ #
213
+ # # config/exception_notification.yml:
214
+ # production:
215
+ # url: http://127.0.0.1:8080
216
+ # namespace: my_app_production
217
+ #
218
+ # development:
219
+ # url: http://localhost:3001
220
+ # namespace: my_app_development
221
+ #
222
+ # <code></code>
223
+ #
224
+ # # config/environments/production.rb
225
+ # Rails.application.configure do
226
+ # config.middleware.use ExceptionNotifier, config_for(:exception_notification)
227
+ # end
228
+ #
229
+ # You can also store configurations in a shared section which will be merged
230
+ # with the environment configuration
231
+ #
232
+ # # config/example.yml
233
+ # shared:
234
+ # foo:
235
+ # bar:
236
+ # baz: 1
237
+ #
238
+ # development:
239
+ # foo:
240
+ # bar:
241
+ # qux: 2
242
+ #
243
+ # <code></code>
244
+ #
245
+ # # development environment
246
+ # Rails.application.config_for(:example)[:foo][:bar]
247
+ # # => { baz: 1, qux: 2 }
248
+ #
249
+ # pkg:gem/railties#lib/rails/application.rb:290
250
+ def config_for(name, env: T.unsafe(nil)); end
251
+
252
+ # Sends any console called in the instance of a new application up
253
+ # to the +console+ method defined in Rails::Railtie.
254
+ #
255
+ # pkg:gem/railties#lib/rails/application.rb:373
256
+ def console(&blk); end
257
+
258
+ # Returns an ActiveSupport::EncryptedConfiguration instance for the
259
+ # credentials file specified by +config.credentials.content_path+.
260
+ #
261
+ # By default, +config.credentials.content_path+ will point to either
262
+ # <tt>config/credentials/#{environment}.yml.enc</tt> for the current
263
+ # environment (for example, +config/credentials/production.yml.enc+ for the
264
+ # +production+ environment), or +config/credentials.yml.enc+ if that file
265
+ # does not exist.
266
+ #
267
+ # The encryption key is taken from either <tt>ENV["RAILS_MASTER_KEY"]</tt>,
268
+ # or from the file specified by +config.credentials.key_path+. By default,
269
+ # +config.credentials.key_path+ will point to either
270
+ # <tt>config/credentials/#{environment}.key</tt> for the current
271
+ # environment, or +config/master.key+ if that file does not exist.
272
+ #
273
+ # pkg:gem/railties#lib/rails/application.rb:497
274
+ def credentials; end
275
+
276
+ # Returns an ActiveSupport::EncryptedConfiguration instance for the
277
+ # credentials file specified by +config.credentials.content_path+.
278
+ #
279
+ # By default, +config.credentials.content_path+ will point to either
280
+ # <tt>config/credentials/#{environment}.yml.enc</tt> for the current
281
+ # environment (for example, +config/credentials/production.yml.enc+ for the
282
+ # +production+ environment), or +config/credentials.yml.enc+ if that file
283
+ # does not exist.
284
+ #
285
+ # The encryption key is taken from either <tt>ENV["RAILS_MASTER_KEY"]</tt>,
286
+ # or from the file specified by +config.credentials.key_path+. By default,
287
+ # +config.credentials.key_path+ will point to either
288
+ # <tt>config/credentials/#{environment}.key</tt> for the current
289
+ # environment, or +config/master.key+ if that file does not exist.
290
+ #
291
+ # pkg:gem/railties#lib/rails/application.rb:458
292
+ def credentials=(_arg0); end
293
+
294
+ # pkg:gem/railties#lib/rails/application.rb:102
295
+ def default_url_options(*_arg0, **_arg1, &_arg2); end
296
+
297
+ # pkg:gem/railties#lib/rails/application.rb:102
298
+ def default_url_options=(arg); end
299
+
300
+ # A managed collection of deprecators (ActiveSupport::Deprecation::Deprecators).
301
+ # The collection's configuration methods affect all deprecators in the
302
+ # collection. Additionally, the collection's +silence+ method silences all
303
+ # deprecators in the collection for the duration of a given block.
304
+ #
305
+ # pkg:gem/railties#lib/rails/application.rb:246
306
+ def deprecators; end
307
+
308
+ # Eager loads the application code.
309
+ #
310
+ # pkg:gem/railties#lib/rails/application.rb:555
311
+ def eager_load!; end
312
+
313
+ # Returns an ActiveSupport::EncryptedConfiguration instance for an encrypted
314
+ # file. By default, the encryption key is taken from either
315
+ # <tt>ENV["RAILS_MASTER_KEY"]</tt>, or from the +config/master.key+ file.
316
+ #
317
+ # my_config = Rails.application.encrypted("config/my_config.enc")
318
+ #
319
+ # my_config.read
320
+ # # => "foo:\n bar: 123\n"
321
+ #
322
+ # my_config.foo.bar
323
+ # # => 123
324
+ #
325
+ # Encrypted files can be edited with the <tt>bin/rails encrypted:edit</tt>
326
+ # command. (See the output of <tt>bin/rails encrypted:edit --help</tt> for
327
+ # more information.)
328
+ #
329
+ # pkg:gem/railties#lib/rails/application.rb:516
330
+ def encrypted(path, key_path: T.unsafe(nil), env_key: T.unsafe(nil)); end
331
+
332
+ # Stores some of the \Rails initial environment parameters which
333
+ # will be used by middlewares and engines to configure themselves.
334
+ #
335
+ # pkg:gem/railties#lib/rails/application.rb:319
336
+ def env_config; end
337
+
338
+ # pkg:gem/railties#lib/rails/application.rb:100
339
+ def executor; end
340
+
341
+ # Sends any generators called in the instance of a new application up
342
+ # to the +generators+ method defined in Rails::Railtie.
343
+ #
344
+ # pkg:gem/railties#lib/rails/application.rb:379
345
+ def generators(&blk); end
346
+
347
+ # pkg:gem/railties#lib/rails/application.rb:529
348
+ def helpers_paths; end
349
+
350
+ # Initialize the application passing the given group. By default, the
351
+ # group is :default
352
+ #
353
+ # pkg:gem/railties#lib/rails/application.rb:440
354
+ def initialize!(group = T.unsafe(nil)); end
355
+
356
+ # Returns true if the application is initialized.
357
+ #
358
+ # pkg:gem/railties#lib/rails/application.rb:132
359
+ def initialized?; end
360
+
361
+ # Sends the initializers to the +initializer+ method defined in the
362
+ # Rails::Initializable module. Each Rails::Application class has its own
363
+ # set of initializers, as defined by the Initializable module.
364
+ #
365
+ # pkg:gem/railties#lib/rails/application.rb:361
366
+ def initializer(name, opts = T.unsafe(nil), &block); end
367
+
368
+ # pkg:gem/railties#lib/rails/application.rb:447
369
+ def initializers; end
370
+
371
+ # Sends the +isolate_namespace+ method up to the class method.
372
+ #
373
+ # pkg:gem/railties#lib/rails/application.rb:390
374
+ def isolate_namespace(mod); end
375
+
376
+ # Returns a key generator (ActiveSupport::CachingKeyGenerator) for a
377
+ # specified +secret_key_base+. The return value is memoized, so additional
378
+ # calls with the same +secret_key_base+ will return the same key generator
379
+ # instance.
380
+ #
381
+ # pkg:gem/railties#lib/rails/application.rb:174
382
+ def key_generator(secret_key_base = T.unsafe(nil)); end
383
+
384
+ # pkg:gem/railties#lib/rails/application.rb:549
385
+ def load_generators(app = T.unsafe(nil)); end
386
+
387
+ # Returns a message verifier object.
388
+ #
389
+ # This verifier can be used to generate and verify signed messages in the application.
390
+ #
391
+ # It is recommended not to use the same verifier for different things, so you can get different
392
+ # verifiers passing the +verifier_name+ argument.
393
+ #
394
+ # For instance, +ActiveStorage::Blob.signed_id_verifier+ is implemented using this feature, which assures that
395
+ # the IDs strings haven't been tampered with and are safe to use in a finder.
396
+ #
397
+ # See the ActiveSupport::MessageVerifier documentation for more information.
398
+ #
399
+ # ==== Parameters
400
+ #
401
+ # * +verifier_name+ - the name of the message verifier.
402
+ #
403
+ # ==== Examples
404
+ #
405
+ # message = Rails.application.message_verifier('my_purpose').generate('data to sign against tampering')
406
+ # Rails.application.message_verifier('my_purpose').verify(message)
407
+ # # => 'data to sign against tampering'
408
+ #
409
+ # pkg:gem/railties#lib/rails/application.rb:238
410
+ def message_verifier(verifier_name); end
411
+
412
+ # Returns a message verifier factory (ActiveSupport::MessageVerifiers). This
413
+ # factory can be used as a central point to configure and create message
414
+ # verifiers (ActiveSupport::MessageVerifier) for your application.
415
+ #
416
+ # By default, message verifiers created by this factory will generate
417
+ # messages using the default ActiveSupport::MessageVerifier options. You can
418
+ # override these options with a combination of
419
+ # ActiveSupport::MessageVerifiers#clear_rotations and
420
+ # ActiveSupport::MessageVerifiers#rotate. However, this must be done prior
421
+ # to building any message verifier instances. For example, in a
422
+ # +before_initialize+ block:
423
+ #
424
+ # # Use `url_safe: true` when generating messages
425
+ # config.before_initialize do |app|
426
+ # app.message_verifiers.clear_rotations
427
+ # app.message_verifiers.rotate(url_safe: true)
428
+ # end
429
+ #
430
+ # Message verifiers created by this factory will always use a secret derived
431
+ # from #secret_key_base when generating messages. +clear_rotations+ will not
432
+ # affect this behavior. However, older +secret_key_base+ values can be
433
+ # rotated for verifying messages:
434
+ #
435
+ # # Fall back to old `secret_key_base` when verifying messages
436
+ # config.before_initialize do |app|
437
+ # app.message_verifiers.rotate(secret_key_base: "old secret_key_base")
438
+ # end
439
+ #
440
+ # pkg:gem/railties#lib/rails/application.rb:210
441
+ def message_verifiers; end
442
+
443
+ # Return an array of railties respecting the order they're loaded
444
+ # and the order specified by the +railties_order+ config.
445
+ #
446
+ # While running initializers we need engines in reverse order here when
447
+ # copying migrations from railties ; we need them in the order given by
448
+ # +railties_order+.
449
+ #
450
+ # pkg:gem/railties#lib/rails/application.rb:545
451
+ def migration_railties; end
452
+
453
+ # Returns the dasherized application name.
454
+ #
455
+ # MyApp::Application.new.name => "my-app"
456
+ #
457
+ # pkg:gem/railties#lib/rails/application.rb:139
458
+ def name; end
459
+
460
+ # If you try to define a set of Rake tasks on the instance, these will get
461
+ # passed up to the Rake tasks defined on the application's class.
462
+ #
463
+ # pkg:gem/railties#lib/rails/application.rb:354
464
+ def rake_tasks(&block); end
465
+
466
+ # Reload application routes regardless if they changed or not.
467
+ #
468
+ # pkg:gem/railties#lib/rails/application.rb:158
469
+ def reload_routes!; end
470
+
471
+ # pkg:gem/railties#lib/rails/application.rb:166
472
+ def reload_routes_unless_loaded; end
473
+
474
+ # pkg:gem/railties#lib/rails/application.rb:100
475
+ def reloader; end
476
+
477
+ # pkg:gem/railties#lib/rails/application.rb:100
478
+ def reloaders; end
479
+
480
+ # pkg:gem/railties#lib/rails/application.rb:416
481
+ def require_environment!; end
482
+
483
+ # pkg:gem/railties#lib/rails/application.rb:421
484
+ def routes_reloader; end
485
+
486
+ # pkg:gem/railties#lib/rails/application.rb:143
487
+ def run_load_hooks!; end
488
+
489
+ # Sends any runner called in the instance of a new application up
490
+ # to the +runner+ method defined in Rails::Railtie.
491
+ #
492
+ # pkg:gem/railties#lib/rails/application.rb:367
493
+ def runner(&blk); end
494
+
495
+ # pkg:gem/railties#lib/rails/application.rb:98
496
+ def sandbox; end
497
+
498
+ # pkg:gem/railties#lib/rails/application.rb:98
499
+ def sandbox=(_arg0); end
500
+
501
+ # pkg:gem/railties#lib/rails/application.rb:99
502
+ def sandbox?; end
503
+
504
+ # The secret_key_base is used as the input secret to the application's key generator, which in turn
505
+ # is used to create all ActiveSupport::MessageVerifier and ActiveSupport::MessageEncryptor instances,
506
+ # including the ones that sign and encrypt cookies.
507
+ #
508
+ # We look for it first in <tt>ENV["SECRET_KEY_BASE"]</tt>, then in
509
+ # +credentials.secret_key_base+. For most applications, the correct place
510
+ # to store it is in the encrypted credentials file.
511
+ #
512
+ # In development and test, if the secret_key_base is still empty, it is
513
+ # randomly generated and stored in a temporary file in
514
+ # <tt>tmp/local_secret.txt</tt>.
515
+ #
516
+ # Generating a random secret_key_base and storing it in
517
+ # <tt>tmp/local_secret.txt</tt> can also be triggered by setting
518
+ # <tt>ENV["SECRET_KEY_BASE_DUMMY"]</tt>. This is useful when precompiling
519
+ # assets for production as part of a build step that otherwise does not
520
+ # need access to the production secrets.
521
+ #
522
+ # Dockerfile example: <tt>RUN SECRET_KEY_BASE_DUMMY=1 bundle exec rails assets:precompile</tt>.
523
+ #
524
+ # pkg:gem/railties#lib/rails/application.rb:479
525
+ def secret_key_base; end
526
+
527
+ # Sends any server called in the instance of a new application up
528
+ # to the +server+ method defined in Rails::Railtie.
529
+ #
530
+ # pkg:gem/railties#lib/rails/application.rb:385
531
+ def server(&blk); end
532
+
533
+ # pkg:gem/railties#lib/rails/application.rb:525
534
+ def to_app; end
535
+
536
+ # Returns an array of file paths appended with a hash of
537
+ # directories-extensions suitable for ActiveSupport::FileUpdateChecker
538
+ # API.
539
+ #
540
+ # pkg:gem/railties#lib/rails/application.rb:428
541
+ def watchable_args; end
542
+
543
+ protected
544
+
545
+ # pkg:gem/railties#lib/rails/application.rb:628
546
+ def default_middleware_stack; end
547
+
548
+ # pkg:gem/railties#lib/rails/application.rb:633
549
+ def ensure_generator_templates_added; end
550
+
551
+ # Returns the ordered railties for this application considering railties_order.
552
+ #
553
+ # pkg:gem/railties#lib/rails/application.rb:594
554
+ def ordered_railties; end
555
+
556
+ # pkg:gem/railties#lib/rails/application.rb:616
557
+ def railties_initializers(current); end
558
+
559
+ # pkg:gem/railties#lib/rails/application.rb:583
560
+ def run_console_blocks(app); end
561
+
562
+ # pkg:gem/railties#lib/rails/application.rb:573
563
+ def run_generators_blocks(app); end
564
+
565
+ # pkg:gem/railties#lib/rails/application.rb:578
566
+ def run_runner_blocks(app); end
567
+
568
+ # pkg:gem/railties#lib/rails/application.rb:588
569
+ def run_server_blocks(app); end
570
+
571
+ # pkg:gem/railties#lib/rails/application.rb:562
572
+ def run_tasks_blocks(app); end
573
+
574
+ private
575
+
576
+ # pkg:gem/railties#lib/rails/application.rb:646
577
+ def build_middleware; end
578
+
579
+ # pkg:gem/railties#lib/rails/application.rb:639
580
+ def build_request(env); end
581
+
582
+ # pkg:gem/railties#lib/rails/application.rb:650
583
+ def coerce_same_site_protection(protection); end
584
+
585
+ # pkg:gem/railties#lib/rails/application.rb:654
586
+ def filter_parameters; end
587
+
588
+ class << self
589
+ # This method is called just after an application inherits from Rails::Application,
590
+ # allowing the developer to load classes in lib and use them during application
591
+ # configuration.
592
+ #
593
+ # class MyApplication < Rails::Application
594
+ # require "my_backend" # in lib/my_backend
595
+ # config.i18n.backend = MyBackend
596
+ # end
597
+ #
598
+ # Notice this method takes into consideration the default root path. So if you
599
+ # are changing config.root inside your application definition or having a custom
600
+ # Rails application, you will need to add lib to $LOAD_PATH on your own in case
601
+ # you need to load files in lib/ during the application configuration as well.
602
+ #
603
+ # pkg:gem/railties#lib/rails/application.rb:409
604
+ def add_lib_to_load_path!(root); end
605
+
606
+ # pkg:gem/railties#lib/rails/application.rb:82
607
+ def create(initial_variable_values = T.unsafe(nil), &block); end
608
+
609
+ # pkg:gem/railties#lib/rails/application.rb:86
610
+ def find_root(from); end
611
+
612
+ # pkg:gem/railties#lib/rails/application.rb:69
613
+ def inherited(base); end
614
+
615
+ # pkg:gem/railties#lib/rails/application.rb:78
616
+ def instance; end
617
+
618
+ # pkg:gem/railties#lib/rails/application.rb:95
619
+ def new(*_arg0); end
620
+ end
621
+ end
622
+
623
+ # pkg:gem/railties#lib/rails/application/bootstrap.rb:10
624
+ module Rails::Application::Bootstrap
625
+ include ::Rails::Initializable
626
+ extend ::Rails::Initializable::ClassMethods
627
+ end
628
+
629
+ # pkg:gem/railties#lib/rails/application/configuration.rb:13
630
+ class Rails::Application::Configuration < ::Rails::Engine::Configuration
631
+ # pkg:gem/railties#lib/rails/application/configuration.rb:31
632
+ def initialize(*_arg0); end
633
+
634
+ # pkg:gem/railties#lib/rails/application/configuration.rb:14
635
+ def add_autoload_paths_to_load_path; end
636
+
637
+ # pkg:gem/railties#lib/rails/application/configuration.rb:14
638
+ def add_autoload_paths_to_load_path=(_arg0); end
639
+
640
+ # pkg:gem/railties#lib/rails/application/configuration.rb:14
641
+ def allow_concurrency; end
642
+
643
+ # pkg:gem/railties#lib/rails/application/configuration.rb:14
644
+ def allow_concurrency=(_arg0); end
645
+
646
+ # pkg:gem/railties#lib/rails/application/configuration.rb:582
647
+ def annotations; end
648
+
649
+ # pkg:gem/railties#lib/rails/application/configuration.rb:29
650
+ def api_only; end
651
+
652
+ # pkg:gem/railties#lib/rails/application/configuration.rb:395
653
+ def api_only=(value); end
654
+
655
+ # pkg:gem/railties#lib/rails/application/configuration.rb:14
656
+ def asset_host; end
657
+
658
+ # pkg:gem/railties#lib/rails/application/configuration.rb:14
659
+ def asset_host=(_arg0); end
660
+
661
+ # pkg:gem/railties#lib/rails/application/configuration.rb:14
662
+ def assume_ssl; end
663
+
664
+ # pkg:gem/railties#lib/rails/application/configuration.rb:14
665
+ def assume_ssl=(_arg0); end
666
+
667
+ # pkg:gem/railties#lib/rails/application/configuration.rb:14
668
+ def autoflush_log; end
669
+
670
+ # pkg:gem/railties#lib/rails/application/configuration.rb:14
671
+ def autoflush_log=(_arg0); end
672
+
673
+ # pkg:gem/railties#lib/rails/application/configuration.rb:490
674
+ def autoload_lib(ignore:); end
675
+
676
+ # pkg:gem/railties#lib/rails/application/configuration.rb:502
677
+ def autoload_lib_once(ignore:); end
678
+
679
+ # pkg:gem/railties#lib/rails/application/configuration.rb:14
680
+ def beginning_of_week; end
681
+
682
+ # pkg:gem/railties#lib/rails/application/configuration.rb:14
683
+ def beginning_of_week=(_arg0); end
684
+
685
+ # pkg:gem/railties#lib/rails/application/configuration.rb:407
686
+ def broadcast_log_level; end
687
+
688
+ # pkg:gem/railties#lib/rails/application/configuration.rb:14
689
+ def cache_classes; end
690
+
691
+ # pkg:gem/railties#lib/rails/application/configuration.rb:14
692
+ def cache_classes=(_arg0); end
693
+
694
+ # pkg:gem/railties#lib/rails/application/configuration.rb:14
695
+ def cache_store; end
696
+
697
+ # pkg:gem/railties#lib/rails/application/configuration.rb:14
698
+ def cache_store=(_arg0); end
699
+
700
+ # pkg:gem/railties#lib/rails/application/configuration.rb:514
701
+ def colorize_logging; end
702
+
703
+ # pkg:gem/railties#lib/rails/application/configuration.rb:518
704
+ def colorize_logging=(val); end
705
+
706
+ # pkg:gem/railties#lib/rails/application/configuration.rb:14
707
+ def consider_all_requests_local; end
708
+
709
+ # pkg:gem/railties#lib/rails/application/configuration.rb:14
710
+ def consider_all_requests_local=(_arg0); end
711
+
712
+ # pkg:gem/railties#lib/rails/application/configuration.rb:14
713
+ def console; end
714
+
715
+ # pkg:gem/railties#lib/rails/application/configuration.rb:14
716
+ def console=(_arg0); end
717
+
718
+ # Configures the ActionDispatch::ContentSecurityPolicy.
719
+ #
720
+ # pkg:gem/railties#lib/rails/application/configuration.rb:587
721
+ def content_security_policy(&block); end
722
+
723
+ # pkg:gem/railties#lib/rails/application/configuration.rb:14
724
+ def content_security_policy_nonce_auto; end
725
+
726
+ # pkg:gem/railties#lib/rails/application/configuration.rb:14
727
+ def content_security_policy_nonce_auto=(_arg0); end
728
+
729
+ # pkg:gem/railties#lib/rails/application/configuration.rb:14
730
+ def content_security_policy_nonce_directives; end
731
+
732
+ # pkg:gem/railties#lib/rails/application/configuration.rb:14
733
+ def content_security_policy_nonce_directives=(_arg0); end
734
+
735
+ # pkg:gem/railties#lib/rails/application/configuration.rb:14
736
+ def content_security_policy_nonce_generator; end
737
+
738
+ # pkg:gem/railties#lib/rails/application/configuration.rb:14
739
+ def content_security_policy_nonce_generator=(_arg0); end
740
+
741
+ # pkg:gem/railties#lib/rails/application/configuration.rb:14
742
+ def content_security_policy_report_only; end
743
+
744
+ # pkg:gem/railties#lib/rails/application/configuration.rb:14
745
+ def content_security_policy_report_only=(_arg0); end
746
+
747
+ # pkg:gem/railties#lib/rails/application/configuration.rb:14
748
+ def credentials; end
749
+
750
+ # pkg:gem/railties#lib/rails/application/configuration.rb:14
751
+ def credentials=(_arg0); end
752
+
753
+ # Loads and returns the entire raw configuration of database from
754
+ # values stored in <tt>config/database.yml</tt>.
755
+ #
756
+ # pkg:gem/railties#lib/rails/application/configuration.rb:453
757
+ def database_configuration; end
758
+
759
+ # pkg:gem/railties#lib/rails/application/configuration.rb:409
760
+ def debug_exception_response_format; end
761
+
762
+ # pkg:gem/railties#lib/rails/application/configuration.rb:413
763
+ def debug_exception_response_format=(_arg0); end
764
+
765
+ # pkg:gem/railties#lib/rails/application/configuration.rb:604
766
+ def default_log_file; end
767
+
768
+ # pkg:gem/railties#lib/rails/application/configuration.rb:14
769
+ def disable_sandbox; end
770
+
771
+ # pkg:gem/railties#lib/rails/application/configuration.rb:14
772
+ def disable_sandbox=(_arg0); end
773
+
774
+ # pkg:gem/railties#lib/rails/application/configuration.rb:14
775
+ def dom_testing_default_html_version; end
776
+
777
+ # pkg:gem/railties#lib/rails/application/configuration.rb:14
778
+ def dom_testing_default_html_version=(_arg0); end
779
+
780
+ # pkg:gem/railties#lib/rails/application/configuration.rb:14
781
+ def eager_load; end
782
+
783
+ # pkg:gem/railties#lib/rails/application/configuration.rb:14
784
+ def eager_load=(_arg0); end
785
+
786
+ # pkg:gem/railties#lib/rails/application/configuration.rb:379
787
+ def enable_reloading; end
788
+
789
+ # pkg:gem/railties#lib/rails/application/configuration.rb:383
790
+ def enable_reloading=(value); end
791
+
792
+ # pkg:gem/railties#lib/rails/application/configuration.rb:29
793
+ def encoding; end
794
+
795
+ # pkg:gem/railties#lib/rails/application/configuration.rb:387
796
+ def encoding=(value); end
797
+
798
+ # pkg:gem/railties#lib/rails/application/configuration.rb:14
799
+ def exceptions_app; end
800
+
801
+ # pkg:gem/railties#lib/rails/application/configuration.rb:14
802
+ def exceptions_app=(_arg0); end
803
+
804
+ # pkg:gem/railties#lib/rails/application/configuration.rb:14
805
+ def file_watcher; end
806
+
807
+ # pkg:gem/railties#lib/rails/application/configuration.rb:14
808
+ def file_watcher=(_arg0); end
809
+
810
+ # pkg:gem/railties#lib/rails/application/configuration.rb:14
811
+ def filter_parameters; end
812
+
813
+ # pkg:gem/railties#lib/rails/application/configuration.rb:14
814
+ def filter_parameters=(_arg0); end
815
+
816
+ # pkg:gem/railties#lib/rails/application/configuration.rb:14
817
+ def filter_redirect; end
818
+
819
+ # pkg:gem/railties#lib/rails/application/configuration.rb:14
820
+ def filter_redirect=(_arg0); end
821
+
822
+ # pkg:gem/railties#lib/rails/application/configuration.rb:14
823
+ def force_ssl; end
824
+
825
+ # pkg:gem/railties#lib/rails/application/configuration.rb:14
826
+ def force_ssl=(_arg0); end
827
+
828
+ # pkg:gem/railties#lib/rails/application/configuration.rb:14
829
+ def helpers_paths; end
830
+
831
+ # pkg:gem/railties#lib/rails/application/configuration.rb:14
832
+ def helpers_paths=(_arg0); end
833
+
834
+ # pkg:gem/railties#lib/rails/application/configuration.rb:14
835
+ def host_authorization; end
836
+
837
+ # pkg:gem/railties#lib/rails/application/configuration.rb:14
838
+ def host_authorization=(_arg0); end
839
+
840
+ # pkg:gem/railties#lib/rails/application/configuration.rb:14
841
+ def hosts; end
842
+
843
+ # pkg:gem/railties#lib/rails/application/configuration.rb:14
844
+ def hosts=(_arg0); end
845
+
846
+ # pkg:gem/railties#lib/rails/application/configuration.rb:616
847
+ def inspect; end
848
+
849
+ # Load the <tt>config/database.yml</tt> to create the Rake tasks for
850
+ # multiple databases without loading the environment and filling in the
851
+ # environment specific configuration values.
852
+ #
853
+ # Do not use this method, use #database_configuration instead.
854
+ #
855
+ # pkg:gem/railties#lib/rails/application/configuration.rb:435
856
+ def load_database_yaml; end
857
+
858
+ # Loads default configuration values for a target version. This includes
859
+ # defaults for versions prior to the target version. See the
860
+ # {configuration guide}[https://guides.rubyonrails.org/configuring.html#versioned-default-values]
861
+ # for the default values associated with a particular version.
862
+ #
863
+ # pkg:gem/railties#lib/rails/application/configuration.rb:94
864
+ def load_defaults(target_version); end
865
+
866
+ # pkg:gem/railties#lib/rails/application/configuration.rb:29
867
+ def loaded_config_version; end
868
+
869
+ # pkg:gem/railties#lib/rails/application/configuration.rb:14
870
+ def log_file_size; end
871
+
872
+ # pkg:gem/railties#lib/rails/application/configuration.rb:14
873
+ def log_file_size=(_arg0); end
874
+
875
+ # pkg:gem/railties#lib/rails/application/configuration.rb:14
876
+ def log_formatter; end
877
+
878
+ # pkg:gem/railties#lib/rails/application/configuration.rb:14
879
+ def log_formatter=(_arg0); end
880
+
881
+ # pkg:gem/railties#lib/rails/application/configuration.rb:29
882
+ def log_level; end
883
+
884
+ # pkg:gem/railties#lib/rails/application/configuration.rb:402
885
+ def log_level=(level); end
886
+
887
+ # pkg:gem/railties#lib/rails/application/configuration.rb:14
888
+ def log_tags; end
889
+
890
+ # pkg:gem/railties#lib/rails/application/configuration.rb:14
891
+ def log_tags=(_arg0); end
892
+
893
+ # pkg:gem/railties#lib/rails/application/configuration.rb:14
894
+ def logger; end
895
+
896
+ # pkg:gem/railties#lib/rails/application/configuration.rb:14
897
+ def logger=(_arg0); end
898
+
899
+ # pkg:gem/railties#lib/rails/application/configuration.rb:415
900
+ def paths; end
901
+
902
+ # Configures the ActionDispatch::PermissionsPolicy.
903
+ #
904
+ # pkg:gem/railties#lib/rails/application/configuration.rb:596
905
+ def permissions_policy(&block); end
906
+
907
+ # pkg:gem/railties#lib/rails/application/configuration.rb:14
908
+ def precompile_filter_parameters; end
909
+
910
+ # pkg:gem/railties#lib/rails/application/configuration.rb:14
911
+ def precompile_filter_parameters=(_arg0); end
912
+
913
+ # pkg:gem/railties#lib/rails/application/configuration.rb:14
914
+ def public_file_server; end
915
+
916
+ # pkg:gem/railties#lib/rails/application/configuration.rb:14
917
+ def public_file_server=(_arg0); end
918
+
919
+ # pkg:gem/railties#lib/rails/application/configuration.rb:14
920
+ def railties_order; end
921
+
922
+ # pkg:gem/railties#lib/rails/application/configuration.rb:14
923
+ def railties_order=(_arg0); end
924
+
925
+ # pkg:gem/railties#lib/rails/application/configuration.rb:14
926
+ def rake_eager_load; end
927
+
928
+ # pkg:gem/railties#lib/rails/application/configuration.rb:14
929
+ def rake_eager_load=(_arg0); end
930
+
931
+ # pkg:gem/railties#lib/rails/application/configuration.rb:14
932
+ def relative_url_root; end
933
+
934
+ # pkg:gem/railties#lib/rails/application/configuration.rb:14
935
+ def relative_url_root=(_arg0); end
936
+
937
+ # pkg:gem/railties#lib/rails/application/configuration.rb:14
938
+ def reload_classes_only_on_change; end
939
+
940
+ # pkg:gem/railties#lib/rails/application/configuration.rb:14
941
+ def reload_classes_only_on_change=(_arg0); end
942
+
943
+ # pkg:gem/railties#lib/rails/application/configuration.rb:375
944
+ def reloading_enabled?; end
945
+
946
+ # pkg:gem/railties#lib/rails/application/configuration.rb:14
947
+ def require_master_key; end
948
+
949
+ # pkg:gem/railties#lib/rails/application/configuration.rb:14
950
+ def require_master_key=(_arg0); end
951
+
952
+ # pkg:gem/railties#lib/rails/application/configuration.rb:14
953
+ def sandbox_by_default; end
954
+
955
+ # pkg:gem/railties#lib/rails/application/configuration.rb:14
956
+ def sandbox_by_default=(_arg0); end
957
+
958
+ # pkg:gem/railties#lib/rails/application/configuration.rb:523
959
+ def secret_key_base; end
960
+
961
+ # pkg:gem/railties#lib/rails/application/configuration.rb:535
962
+ def secret_key_base=(new_secret_key_base); end
963
+
964
+ # pkg:gem/railties#lib/rails/application/configuration.rb:14
965
+ def server_timing; end
966
+
967
+ # pkg:gem/railties#lib/rails/application/configuration.rb:14
968
+ def server_timing=(_arg0); end
969
+
970
+ # pkg:gem/railties#lib/rails/application/configuration.rb:14
971
+ def session_options; end
972
+
973
+ # pkg:gem/railties#lib/rails/application/configuration.rb:14
974
+ def session_options=(_arg0); end
975
+
976
+ # Specifies what class to use to store the session. Possible values
977
+ # are +:cache_store+, +:cookie_store+, +:mem_cache_store+, a custom
978
+ # store, or +:disabled+. +:disabled+ tells \Rails not to deal with
979
+ # sessions.
980
+ #
981
+ # Additional options will be set as +session_options+:
982
+ #
983
+ # config.session_store :cookie_store, key: "_your_app_session"
984
+ # config.session_options # => {key: "_your_app_session"}
985
+ #
986
+ # If a custom store is specified as a symbol, it will be resolved to
987
+ # the +ActionDispatch::Session+ namespace:
988
+ #
989
+ # # use ActionDispatch::Session::MyCustomStore as the session store
990
+ # config.session_store :my_custom_store
991
+ #
992
+ # pkg:gem/railties#lib/rails/application/configuration.rb:562
993
+ def session_store(new_session_store = T.unsafe(nil), **options); end
994
+
995
+ # pkg:gem/railties#lib/rails/application/configuration.rb:578
996
+ def session_store?; end
997
+
998
+ # pkg:gem/railties#lib/rails/application/configuration.rb:14
999
+ def silence_healthcheck_path; end
1000
+
1001
+ # pkg:gem/railties#lib/rails/application/configuration.rb:14
1002
+ def silence_healthcheck_path=(_arg0); end
1003
+
1004
+ # pkg:gem/railties#lib/rails/application/configuration.rb:14
1005
+ def ssl_options; end
1006
+
1007
+ # pkg:gem/railties#lib/rails/application/configuration.rb:14
1008
+ def ssl_options=(_arg0); end
1009
+
1010
+ # pkg:gem/railties#lib/rails/application/configuration.rb:14
1011
+ def time_zone; end
1012
+
1013
+ # pkg:gem/railties#lib/rails/application/configuration.rb:14
1014
+ def time_zone=(_arg0); end
1015
+
1016
+ # pkg:gem/railties#lib/rails/application/configuration.rb:14
1017
+ def x; end
1018
+
1019
+ # pkg:gem/railties#lib/rails/application/configuration.rb:14
1020
+ def x=(_arg0); end
1021
+
1022
+ # pkg:gem/railties#lib/rails/application/configuration.rb:14
1023
+ def yjit; end
1024
+
1025
+ # pkg:gem/railties#lib/rails/application/configuration.rb:14
1026
+ def yjit=(_arg0); end
1027
+
1028
+ private
1029
+
1030
+ # pkg:gem/railties#lib/rails/application/configuration.rb:643
1031
+ def credentials_defaults; end
1032
+
1033
+ # pkg:gem/railties#lib/rails/application/configuration.rb:653
1034
+ def generate_local_secret; end
1035
+ end
1036
+
1037
+ # pkg:gem/railties#lib/rails/application/configuration.rb:620
1038
+ class Rails::Application::Configuration::Custom
1039
+ # pkg:gem/railties#lib/rails/application/configuration.rb:621
1040
+ def initialize; end
1041
+
1042
+ # pkg:gem/railties#lib/rails/application/configuration.rb:625
1043
+ def method_missing(method, *args); end
1044
+
1045
+ private
1046
+
1047
+ # pkg:gem/railties#lib/rails/application/configuration.rb:637
1048
+ def respond_to_missing?(symbol, _); end
1049
+ end
1050
+
1051
+ # pkg:gem/railties#lib/rails/application/default_middleware_stack.rb:5
1052
+ class Rails::Application::DefaultMiddlewareStack
1053
+ # pkg:gem/railties#lib/rails/application/default_middleware_stack.rb:8
1054
+ def initialize(app, config, paths); end
1055
+
1056
+ # pkg:gem/railties#lib/rails/application/default_middleware_stack.rb:6
1057
+ def app; end
1058
+
1059
+ # pkg:gem/railties#lib/rails/application/default_middleware_stack.rb:14
1060
+ def build_stack; end
1061
+
1062
+ # pkg:gem/railties#lib/rails/application/default_middleware_stack.rb:6
1063
+ def config; end
1064
+
1065
+ # pkg:gem/railties#lib/rails/application/default_middleware_stack.rb:6
1066
+ def paths; end
1067
+
1068
+ private
1069
+
1070
+ # pkg:gem/railties#lib/rails/application/default_middleware_stack.rb:113
1071
+ def load_rack_cache; end
1072
+
1073
+ # pkg:gem/railties#lib/rails/application/default_middleware_stack.rb:135
1074
+ def show_exceptions_app; end
1075
+ end
1076
+
1077
+ # pkg:gem/railties#lib/rails/application/finisher.rb:10
1078
+ module Rails::Application::Finisher
1079
+ include ::Rails::Initializable
1080
+ extend ::Rails::Initializable::ClassMethods
1081
+ end
1082
+
1083
+ # pkg:gem/railties#lib/rails/application/finisher.rb:110
1084
+ module Rails::Application::Finisher::InterlockHook
1085
+ class << self
1086
+ # pkg:gem/railties#lib/rails/application/finisher.rb:115
1087
+ def complete(_state); end
1088
+
1089
+ # pkg:gem/railties#lib/rails/application/finisher.rb:111
1090
+ def run; end
1091
+ end
1092
+ end
1093
+
1094
+ # pkg:gem/railties#lib/rails/application/finisher.rb:96
1095
+ class Rails::Application::Finisher::MonitorHook
1096
+ # pkg:gem/railties#lib/rails/application/finisher.rb:97
1097
+ def initialize(monitor = T.unsafe(nil)); end
1098
+
1099
+ # pkg:gem/railties#lib/rails/application/finisher.rb:105
1100
+ def complete(_state); end
1101
+
1102
+ # pkg:gem/railties#lib/rails/application/finisher.rb:101
1103
+ def run; end
1104
+ end
1105
+
1106
+ # pkg:gem/railties#lib/rails/application.rb:104
1107
+ Rails::Application::INITIAL_VARIABLES = T.let(T.unsafe(nil), Array)
1108
+
1109
+ # pkg:gem/railties#lib/rails/application/routes_reloader.rb:6
1110
+ class Rails::Application::RoutesReloader
1111
+ include ::ActiveSupport::Callbacks
1112
+ extend ::ActiveSupport::Callbacks::ClassMethods
1113
+ extend ::ActiveSupport::DescendantsTracker
1114
+
1115
+ # pkg:gem/railties#lib/rails/application/routes_reloader.rb:14
1116
+ def initialize; end
1117
+
1118
+ # pkg:gem/railties#lib/rails/application/routes_reloader.rb:7
1119
+ def __callbacks; end
1120
+
1121
+ # pkg:gem/railties#lib/rails/application/routes_reloader.rb:10
1122
+ def eager_load; end
1123
+
1124
+ # pkg:gem/railties#lib/rails/application/routes_reloader.rb:10
1125
+ def eager_load=(_arg0); end
1126
+
1127
+ # pkg:gem/railties#lib/rails/application/routes_reloader.rb:31
1128
+ def execute; end
1129
+
1130
+ # pkg:gem/railties#lib/rails/application/routes_reloader.rb:12
1131
+ def execute_if_updated(*_arg0, **_arg1, &_arg2); end
1132
+
1133
+ # pkg:gem/railties#lib/rails/application/routes_reloader.rb:36
1134
+ def execute_unless_loaded; end
1135
+
1136
+ # pkg:gem/railties#lib/rails/application/routes_reloader.rb:9
1137
+ def external_routes; end
1138
+
1139
+ # pkg:gem/railties#lib/rails/application/routes_reloader.rb:9
1140
+ def loaded; end
1141
+
1142
+ # pkg:gem/railties#lib/rails/application/routes_reloader.rb:11
1143
+ def loaded=(_arg0); end
1144
+
1145
+ # pkg:gem/railties#lib/rails/application/routes_reloader.rb:9
1146
+ def paths; end
1147
+
1148
+ # pkg:gem/railties#lib/rails/application/routes_reloader.rb:22
1149
+ def reload!; end
1150
+
1151
+ # pkg:gem/railties#lib/rails/application/routes_reloader.rb:9
1152
+ def route_sets; end
1153
+
1154
+ # pkg:gem/railties#lib/rails/application/routes_reloader.rb:11
1155
+ def run_after_load_paths=(_arg0); end
1156
+
1157
+ # pkg:gem/railties#lib/rails/application/routes_reloader.rb:12
1158
+ def updated?(*_arg0, **_arg1, &_arg2); end
1159
+
1160
+ private
1161
+
1162
+ # pkg:gem/railties#lib/rails/application/routes_reloader.rb:55
1163
+ def clear!; end
1164
+
1165
+ # pkg:gem/railties#lib/rails/application/routes_reloader.rb:71
1166
+ def finalize!; end
1167
+
1168
+ # pkg:gem/railties#lib/rails/application/routes_reloader.rb:62
1169
+ def load_paths; end
1170
+
1171
+ # pkg:gem/railties#lib/rails/application/routes_reloader.rb:75
1172
+ def revert; end
1173
+
1174
+ # pkg:gem/railties#lib/rails/application/routes_reloader.rb:67
1175
+ def run_after_load_paths; end
1176
+
1177
+ # pkg:gem/railties#lib/rails/application/routes_reloader.rb:45
1178
+ def updater; end
1179
+
1180
+ class << self
1181
+ # pkg:gem/railties#lib/rails/application/routes_reloader.rb:7
1182
+ def __callbacks; end
1183
+
1184
+ # pkg:gem/railties#lib/rails/application/routes_reloader.rb:7
1185
+ def __callbacks=(value); end
1186
+
1187
+ private
1188
+
1189
+ # pkg:gem/railties#lib/rails/application/routes_reloader.rb:7
1190
+ def __class_attr___callbacks; end
1191
+
1192
+ # pkg:gem/railties#lib/rails/application/routes_reloader.rb:7
1193
+ def __class_attr___callbacks=(new_value); end
1194
+ end
1195
+ end
1196
+
1197
+ # pkg:gem/railties#lib/rails/application_controller.rb:5
1198
+ class Rails::ApplicationController < ::ActionController::Base
1199
+ # pkg:gem/railties#lib/rails/application_controller.rb:9
1200
+ def _run_process_action_callbacks(&block); end
1201
+
1202
+ private
1203
+
1204
+ # pkg:gem/railties#lib/rails/application_controller.rb:5
1205
+ def _layout(lookup_context, formats, keys); end
1206
+
1207
+ # pkg:gem/railties#lib/rails/application_controller.rb:27
1208
+ def disable_content_security_policy_nonce!; end
1209
+
1210
+ # pkg:gem/railties#lib/rails/application_controller.rb:23
1211
+ def local_request?; end
1212
+
1213
+ # pkg:gem/railties#lib/rails/application_controller.rb:17
1214
+ def require_local!; end
1215
+
1216
+ class << self
1217
+ private
1218
+
1219
+ # pkg:gem/railties#lib/rails/application_controller.rb:9
1220
+ def __class_attr___callbacks; end
1221
+
1222
+ # pkg:gem/railties#lib/rails/application_controller.rb:9
1223
+ def __class_attr___callbacks=(new_value); end
1224
+
1225
+ # pkg:gem/railties#lib/rails/application_controller.rb:7
1226
+ def __class_attr__layout; end
1227
+
1228
+ # pkg:gem/railties#lib/rails/application_controller.rb:7
1229
+ def __class_attr__layout=(new_value); end
1230
+
1231
+ # pkg:gem/railties#lib/rails/application_controller.rb:7
1232
+ def __class_attr__layout_conditions; end
1233
+
1234
+ # pkg:gem/railties#lib/rails/application_controller.rb:7
1235
+ def __class_attr__layout_conditions=(new_value); end
1236
+
1237
+ # pkg:gem/railties#lib/rails/application_controller.rb:5
1238
+ def __class_attr_config; end
1239
+
1240
+ # pkg:gem/railties#lib/rails/application_controller.rb:5
1241
+ def __class_attr_config=(new_value); end
1242
+
1243
+ # pkg:gem/railties#lib/rails/application_controller.rb:5
1244
+ def __class_attr_middleware_stack; end
1245
+
1246
+ # pkg:gem/railties#lib/rails/application_controller.rb:5
1247
+ def __class_attr_middleware_stack=(new_value); end
1248
+ end
1249
+ end
1250
+
1251
+ # pkg:gem/railties#lib/rails/autoloaders.rb:4
1252
+ class Rails::Autoloaders
1253
+ include ::Enumerable
1254
+
1255
+ # pkg:gem/railties#lib/rails/autoloaders.rb:11
1256
+ def initialize; end
1257
+
1258
+ # pkg:gem/railties#lib/rails/autoloaders.rb:31
1259
+ def each; end
1260
+
1261
+ # pkg:gem/railties#lib/rails/autoloaders.rb:40
1262
+ def log!; end
1263
+
1264
+ # pkg:gem/railties#lib/rails/autoloaders.rb:36
1265
+ def logger=(logger); end
1266
+
1267
+ # pkg:gem/railties#lib/rails/autoloaders.rb:9
1268
+ def main; end
1269
+
1270
+ # pkg:gem/railties#lib/rails/autoloaders.rb:9
1271
+ def once; end
1272
+
1273
+ # pkg:gem/railties#lib/rails/autoloaders.rb:44
1274
+ def zeitwerk_enabled?; end
1275
+ end
1276
+
1277
+ # pkg:gem/railties#lib/rails/autoloaders/inflector.rb:7
1278
+ module Rails::Autoloaders::Inflector
1279
+ class << self
1280
+ # pkg:gem/railties#lib/rails/autoloaders/inflector.rb:12
1281
+ def camelize(basename, _abspath); end
1282
+
1283
+ # pkg:gem/railties#lib/rails/autoloaders/inflector.rb:16
1284
+ def inflect(overrides); end
1285
+ end
1286
+ end
1287
+
1288
+ # pkg:gem/railties#lib/rails/backtrace_cleaner.rb:7
1289
+ class Rails::BacktraceCleaner < ::ActiveSupport::BacktraceCleaner
1290
+ # pkg:gem/railties#lib/rails/backtrace_cleaner.rb:11
1291
+ def initialize; end
1292
+
1293
+ # pkg:gem/railties#lib/rails/backtrace_cleaner.rb:29
1294
+ def clean(backtrace, kind = T.unsafe(nil)); end
1295
+
1296
+ # pkg:gem/railties#lib/rails/backtrace_cleaner.rb:36
1297
+ def clean_frame(frame, kind = T.unsafe(nil)); end
1298
+
1299
+ # pkg:gem/railties#lib/rails/backtrace_cleaner.rb:34
1300
+ def filter(backtrace, kind = T.unsafe(nil)); end
1301
+ end
1302
+
1303
+ # pkg:gem/railties#lib/rails/backtrace_cleaner.rb:8
1304
+ Rails::BacktraceCleaner::APP_DIRS_PATTERN = T.let(T.unsafe(nil), Regexp)
1305
+
1306
+ # pkg:gem/railties#lib/rails/backtrace_cleaner.rb:9
1307
+ Rails::BacktraceCleaner::RENDER_TEMPLATE_PATTERN = T.let(T.unsafe(nil), Regexp)
1308
+
1309
+ # pkg:gem/railties#lib/rails/configuration.rb:9
1310
+ module Rails::Configuration; end
1311
+
1312
+ # pkg:gem/railties#lib/rails/configuration.rb:104
1313
+ class Rails::Configuration::Generators
1314
+ # pkg:gem/railties#lib/rails/configuration.rb:108
1315
+ def initialize; end
1316
+
1317
+ # pkg:gem/railties#lib/rails/configuration.rb:130
1318
+ def after_generate(&block); end
1319
+
1320
+ # pkg:gem/railties#lib/rails/configuration.rb:106
1321
+ def after_generate_callbacks; end
1322
+
1323
+ # pkg:gem/railties#lib/rails/configuration.rb:105
1324
+ def aliases; end
1325
+
1326
+ # pkg:gem/railties#lib/rails/configuration.rb:105
1327
+ def aliases=(_arg0); end
1328
+
1329
+ # pkg:gem/railties#lib/rails/configuration.rb:105
1330
+ def api_only; end
1331
+
1332
+ # pkg:gem/railties#lib/rails/configuration.rb:105
1333
+ def api_only=(_arg0); end
1334
+
1335
+ # pkg:gem/railties#lib/rails/configuration.rb:134
1336
+ def apply_rubocop_autocorrect_after_generate!; end
1337
+
1338
+ # pkg:gem/railties#lib/rails/configuration.rb:105
1339
+ def colorize_logging; end
1340
+
1341
+ # pkg:gem/railties#lib/rails/configuration.rb:105
1342
+ def colorize_logging=(_arg0); end
1343
+
1344
+ # pkg:gem/railties#lib/rails/configuration.rb:105
1345
+ def fallbacks; end
1346
+
1347
+ # pkg:gem/railties#lib/rails/configuration.rb:105
1348
+ def fallbacks=(_arg0); end
1349
+
1350
+ # pkg:gem/railties#lib/rails/configuration.rb:106
1351
+ def hidden_namespaces; end
1352
+
1353
+ # pkg:gem/railties#lib/rails/configuration.rb:126
1354
+ def hide_namespace(namespace); end
1355
+
1356
+ # pkg:gem/railties#lib/rails/configuration.rb:143
1357
+ def method_missing(method, *args); end
1358
+
1359
+ # pkg:gem/railties#lib/rails/configuration.rb:105
1360
+ def options; end
1361
+
1362
+ # pkg:gem/railties#lib/rails/configuration.rb:105
1363
+ def options=(_arg0); end
1364
+
1365
+ # pkg:gem/railties#lib/rails/configuration.rb:105
1366
+ def templates; end
1367
+
1368
+ # pkg:gem/railties#lib/rails/configuration.rb:105
1369
+ def templates=(_arg0); end
1370
+
1371
+ private
1372
+
1373
+ # pkg:gem/railties#lib/rails/configuration.rb:119
1374
+ def initialize_copy(source); end
1375
+ end
1376
+
1377
+ # MiddlewareStackProxy is a proxy for the \Rails middleware stack that allows
1378
+ # you to configure middlewares in your application. It works basically as a
1379
+ # command recorder, saving each command to be applied after initialization
1380
+ # over the default middleware stack, so you can add, swap, or remove any
1381
+ # middleware in \Rails.
1382
+ #
1383
+ # You can add your own middlewares by using the +config.middleware.use+ method:
1384
+ #
1385
+ # config.middleware.use Magical::Unicorns
1386
+ #
1387
+ # This will put the +Magical::Unicorns+ middleware on the end of the stack.
1388
+ # You can use +insert_before+ if you wish to add a middleware before another:
1389
+ #
1390
+ # config.middleware.insert_before Rack::Head, Magical::Unicorns
1391
+ #
1392
+ # There's also +insert_after+ which will insert a middleware after another:
1393
+ #
1394
+ # config.middleware.insert_after Rack::Head, Magical::Unicorns
1395
+ #
1396
+ # Middlewares can also be completely swapped out and replaced with others:
1397
+ #
1398
+ # config.middleware.swap ActionDispatch::Flash, Magical::Unicorns
1399
+ #
1400
+ # Middlewares can be moved from one place to another:
1401
+ #
1402
+ # config.middleware.move_before ActionDispatch::Flash, Magical::Unicorns
1403
+ #
1404
+ # This will move the +Magical::Unicorns+ middleware before the
1405
+ # +ActionDispatch::Flash+. You can also move it after:
1406
+ #
1407
+ # config.middleware.move_after ActionDispatch::Flash, Magical::Unicorns
1408
+ #
1409
+ # And finally they can also be removed from the stack completely:
1410
+ #
1411
+ # config.middleware.delete ActionDispatch::Flash
1412
+ #
1413
+ # pkg:gem/railties#lib/rails/configuration.rb:46
1414
+ class Rails::Configuration::MiddlewareStackProxy
1415
+ # pkg:gem/railties#lib/rails/configuration.rb:47
1416
+ def initialize(operations = T.unsafe(nil), delete_operations = T.unsafe(nil)); end
1417
+
1418
+ # pkg:gem/railties#lib/rails/configuration.rb:96
1419
+ def +(other); end
1420
+
1421
+ # pkg:gem/railties#lib/rails/configuration.rb:70
1422
+ def delete(*_arg0, **_arg1, &_arg2); end
1423
+
1424
+ # pkg:gem/railties#lib/rails/configuration.rb:56
1425
+ def insert(*_arg0, **_arg1, &_arg2); end
1426
+
1427
+ # pkg:gem/railties#lib/rails/configuration.rb:58
1428
+ def insert_after(*_arg0, **_arg1, &_arg2); end
1429
+
1430
+ # pkg:gem/railties#lib/rails/configuration.rb:52
1431
+ def insert_before(*_arg0, **_arg1, &_arg2); end
1432
+
1433
+ # pkg:gem/railties#lib/rails/configuration.rb:88
1434
+ def merge_into(other); end
1435
+
1436
+ # pkg:gem/railties#lib/rails/configuration.rb:78
1437
+ def move(*_arg0, **_arg1, &_arg2); end
1438
+
1439
+ # pkg:gem/railties#lib/rails/configuration.rb:80
1440
+ def move_after(*_arg0, **_arg1, &_arg2); end
1441
+
1442
+ # pkg:gem/railties#lib/rails/configuration.rb:74
1443
+ def move_before(*_arg0, **_arg1, &_arg2); end
1444
+
1445
+ # pkg:gem/railties#lib/rails/configuration.rb:62
1446
+ def swap(*_arg0, **_arg1, &_arg2); end
1447
+
1448
+ # pkg:gem/railties#lib/rails/configuration.rb:84
1449
+ def unshift(*_arg0, **_arg1, &_arg2); end
1450
+
1451
+ # pkg:gem/railties#lib/rails/configuration.rb:66
1452
+ def use(*_arg0, **_arg1, &_arg2); end
1453
+
1454
+ protected
1455
+
1456
+ # pkg:gem/railties#lib/rails/configuration.rb:101
1457
+ def delete_operations; end
1458
+
1459
+ # pkg:gem/railties#lib/rails/configuration.rb:101
1460
+ def operations; end
1461
+ end
1462
+
1463
+ # +Rails::Engine+ allows you to wrap a specific \Rails application or subset of
1464
+ # functionality and share it with other applications or within a larger packaged application.
1465
+ # Every Rails::Application is just an engine, which allows for simple
1466
+ # feature and application sharing.
1467
+ #
1468
+ # Any +Rails::Engine+ is also a Rails::Railtie, so the same
1469
+ # methods (like {rake_tasks}[rdoc-ref:Rails::Railtie::rake_tasks] and
1470
+ # {generators}[rdoc-ref:Rails::Railtie::generators]) and configuration
1471
+ # options that are available in railties can also be used in engines.
1472
+ #
1473
+ # == Creating an Engine
1474
+ #
1475
+ # If you want a gem to behave as an engine, you have to specify an +Engine+
1476
+ # for it somewhere inside your plugin's +lib+ folder (similar to how we
1477
+ # specify a +Railtie+):
1478
+ #
1479
+ # # lib/my_engine.rb
1480
+ # module MyEngine
1481
+ # class Engine < Rails::Engine
1482
+ # end
1483
+ # end
1484
+ #
1485
+ # Then ensure that this file is loaded at the top of your <tt>config/application.rb</tt>
1486
+ # (or in your +Gemfile+), and it will automatically load models, controllers, and helpers
1487
+ # inside +app+, load routes at <tt>config/routes.rb</tt>, load locales at
1488
+ # <tt>config/locales/**/*</tt>, and load tasks at <tt>lib/tasks/**/*</tt>.
1489
+ #
1490
+ # == Configuration
1491
+ #
1492
+ # Like railties, engines can access a config object which contains configuration shared by
1493
+ # all railties and the application.
1494
+ # Additionally, each engine can access <tt>autoload_paths</tt>, <tt>eager_load_paths</tt> and
1495
+ # <tt>autoload_once_paths</tt> settings which are scoped to that engine.
1496
+ #
1497
+ # class MyEngine < Rails::Engine
1498
+ # # Add a load path for this specific Engine
1499
+ # config.autoload_paths << File.expand_path("lib/some/path", __dir__)
1500
+ #
1501
+ # initializer "my_engine.add_middleware" do |app|
1502
+ # app.middleware.use MyEngine::Middleware
1503
+ # end
1504
+ # end
1505
+ #
1506
+ # == Generators
1507
+ #
1508
+ # You can set up generators for engines with <tt>config.generators</tt> method:
1509
+ #
1510
+ # class MyEngine < Rails::Engine
1511
+ # config.generators do |g|
1512
+ # g.orm :active_record
1513
+ # g.template_engine :erb
1514
+ # g.test_framework :test_unit
1515
+ # end
1516
+ # end
1517
+ #
1518
+ # You can also set generators for an application by using <tt>config.app_generators</tt>:
1519
+ #
1520
+ # class MyEngine < Rails::Engine
1521
+ # # note that you can also pass block to app_generators in the same way you
1522
+ # # can pass it to generators method
1523
+ # config.app_generators.orm :datamapper
1524
+ # end
1525
+ #
1526
+ # == Paths
1527
+ #
1528
+ # Applications and engines have flexible path configuration, meaning that you
1529
+ # are not required to place your controllers at <tt>app/controllers</tt>, but
1530
+ # in any place which you find convenient.
1531
+ #
1532
+ # For example, let's suppose you want to place your controllers in <tt>lib/controllers</tt>.
1533
+ # You can set that as an option:
1534
+ #
1535
+ # class MyEngine < Rails::Engine
1536
+ # paths["app/controllers"] = "lib/controllers"
1537
+ # end
1538
+ #
1539
+ # You can also have your controllers loaded from both <tt>app/controllers</tt> and
1540
+ # <tt>lib/controllers</tt>:
1541
+ #
1542
+ # class MyEngine < Rails::Engine
1543
+ # paths["app/controllers"] << "lib/controllers"
1544
+ # end
1545
+ #
1546
+ # The available paths in an engine are:
1547
+ #
1548
+ # class MyEngine < Rails::Engine
1549
+ # paths["app"] # => ["app"]
1550
+ # paths["app/controllers"] # => ["app/controllers"]
1551
+ # paths["app/helpers"] # => ["app/helpers"]
1552
+ # paths["app/models"] # => ["app/models"]
1553
+ # paths["app/views"] # => ["app/views"]
1554
+ # paths["lib"] # => ["lib"]
1555
+ # paths["lib/tasks"] # => ["lib/tasks"]
1556
+ # paths["config"] # => ["config"]
1557
+ # paths["config/initializers"] # => ["config/initializers"]
1558
+ # paths["config/locales"] # => ["config/locales"]
1559
+ # paths["config/routes.rb"] # => ["config/routes.rb"]
1560
+ # end
1561
+ #
1562
+ # The <tt>Application</tt> class adds a couple more paths to this set. And as in your
1563
+ # <tt>Application</tt>, all folders under +app+ are automatically added to the load path.
1564
+ # If you have an <tt>app/services</tt> folder for example, it will be added by default.
1565
+ #
1566
+ # == Endpoint
1567
+ #
1568
+ # An engine can also be a Rack application. It can be useful if you have a Rack application that
1569
+ # you would like to provide with some of the +Engine+'s features.
1570
+ #
1571
+ # To do that, use the ::endpoint method:
1572
+ #
1573
+ # module MyEngine
1574
+ # class Engine < Rails::Engine
1575
+ # endpoint MyRackApplication
1576
+ # end
1577
+ # end
1578
+ #
1579
+ # Now you can mount your engine in application's routes:
1580
+ #
1581
+ # Rails.application.routes.draw do
1582
+ # mount MyEngine::Engine => "/engine"
1583
+ # end
1584
+ #
1585
+ # == Middleware stack
1586
+ #
1587
+ # As an engine can now be a Rack endpoint, it can also have a middleware
1588
+ # stack. The usage is exactly the same as in <tt>Application</tt>:
1589
+ #
1590
+ # module MyEngine
1591
+ # class Engine < Rails::Engine
1592
+ # middleware.use SomeMiddleware
1593
+ # end
1594
+ # end
1595
+ #
1596
+ # == Routes
1597
+ #
1598
+ # If you don't specify an endpoint, routes will be used as the default
1599
+ # endpoint. You can use them just like you use an application's routes:
1600
+ #
1601
+ # # ENGINE/config/routes.rb
1602
+ # MyEngine::Engine.routes.draw do
1603
+ # get "/" => "posts#index"
1604
+ # end
1605
+ #
1606
+ # == Mount priority
1607
+ #
1608
+ # Note that now there can be more than one router in your application, and it's better to avoid
1609
+ # passing requests through many routers. Consider this situation:
1610
+ #
1611
+ # Rails.application.routes.draw do
1612
+ # mount MyEngine::Engine => "/blog"
1613
+ # get "/blog/omg" => "main#omg"
1614
+ # end
1615
+ #
1616
+ # +MyEngine+ is mounted at <tt>/blog</tt>, and <tt>/blog/omg</tt> points to application's
1617
+ # controller. In such a situation, requests to <tt>/blog/omg</tt> will go through +MyEngine+,
1618
+ # and if there is no such route in +Engine+'s routes, it will be dispatched to <tt>main#omg</tt>.
1619
+ # It's much better to swap that:
1620
+ #
1621
+ # Rails.application.routes.draw do
1622
+ # get "/blog/omg" => "main#omg"
1623
+ # mount MyEngine::Engine => "/blog"
1624
+ # end
1625
+ #
1626
+ # Now, +Engine+ will get only requests that were not handled by +Application+.
1627
+ #
1628
+ # == Engine name
1629
+ #
1630
+ # There are some places where an Engine's name is used:
1631
+ #
1632
+ # * routes: when you mount an Engine with <tt>mount(MyEngine::Engine => '/my_engine')</tt>,
1633
+ # it's used as default <tt>:as</tt> option
1634
+ # * rake task for installing migrations <tt>my_engine:install:migrations</tt>
1635
+ #
1636
+ # Engine name is set by default based on class name. For +MyEngine::Engine+ it will be
1637
+ # <tt>my_engine_engine</tt>. You can change it manually using the <tt>engine_name</tt> method:
1638
+ #
1639
+ # module MyEngine
1640
+ # class Engine < Rails::Engine
1641
+ # engine_name "my_engine"
1642
+ # end
1643
+ # end
1644
+ #
1645
+ # == Isolated Engine
1646
+ #
1647
+ # Normally when you create controllers, helpers, and models inside an engine, they are treated
1648
+ # as if they were created inside the application itself. This means that all helpers and
1649
+ # named routes from the application will be available to your engine's controllers as well.
1650
+ #
1651
+ # However, sometimes you want to isolate your engine from the application, especially if your engine
1652
+ # has its own router. To do that, you simply need to call ::isolate_namespace. This method requires
1653
+ # you to pass a module where all your controllers, helpers, and models should be nested to:
1654
+ #
1655
+ # module MyEngine
1656
+ # class Engine < Rails::Engine
1657
+ # isolate_namespace MyEngine
1658
+ # end
1659
+ # end
1660
+ #
1661
+ # With such an engine, everything that is inside the +MyEngine+ module will be isolated from
1662
+ # the application.
1663
+ #
1664
+ # Consider this controller:
1665
+ #
1666
+ # module MyEngine
1667
+ # class FooController < ActionController::Base
1668
+ # end
1669
+ # end
1670
+ #
1671
+ # If the +MyEngine+ engine is marked as isolated, +FooController+ only has
1672
+ # access to helpers from +MyEngine+, and <tt>url_helpers</tt> from
1673
+ # <tt>MyEngine::Engine.routes</tt>.
1674
+ #
1675
+ # The next thing that changes in isolated engines is the behavior of routes.
1676
+ # Normally, when you namespace your controllers, you also need to namespace
1677
+ # the related routes. With an isolated engine, the engine's namespace is
1678
+ # automatically applied, so you don't need to specify it explicitly in your
1679
+ # routes:
1680
+ #
1681
+ # MyEngine::Engine.routes.draw do
1682
+ # resources :articles
1683
+ # end
1684
+ #
1685
+ # If +MyEngine+ is isolated, the routes above will point to
1686
+ # +MyEngine::ArticlesController+. You also don't need to use longer
1687
+ # URL helpers like +my_engine_articles_path+. Instead, you should simply use
1688
+ # +articles_path+, like you would do with your main application.
1689
+ #
1690
+ # To make this behavior consistent with other parts of the framework,
1691
+ # isolated engines also have an effect on ActiveModel::Naming. In a
1692
+ # normal \Rails app, when you use a namespaced model such as
1693
+ # +Namespace::Article+, ActiveModel::Naming will generate
1694
+ # names with the prefix "namespace". In an isolated engine, the prefix will
1695
+ # be omitted in URL helpers and form fields, for convenience.
1696
+ #
1697
+ # polymorphic_url(MyEngine::Article.new)
1698
+ # # => "articles_path" # not "my_engine_articles_path"
1699
+ #
1700
+ # form_with(model: MyEngine::Article.new) do
1701
+ # text_field :title # => <input type="text" name="article[title]" id="article_title" />
1702
+ # end
1703
+ #
1704
+ # Additionally, an isolated engine will set its own name according to its
1705
+ # namespace, so <tt>MyEngine::Engine.engine_name</tt> will return
1706
+ # "my_engine". It will also set +MyEngine.table_name_prefix+ to "my_engine_",
1707
+ # meaning for example that +MyEngine::Article+ will use the
1708
+ # +my_engine_articles+ database table by default.
1709
+ #
1710
+ # == Using Engine's routes outside Engine
1711
+ #
1712
+ # Since you can now mount an engine inside application's routes, you do not have direct access to +Engine+'s
1713
+ # <tt>url_helpers</tt> inside +Application+. When you mount an engine in an application's routes, a special helper is
1714
+ # created to allow you to do that. Consider such a scenario:
1715
+ #
1716
+ # # config/routes.rb
1717
+ # Rails.application.routes.draw do
1718
+ # mount MyEngine::Engine => "/my_engine", as: "my_engine"
1719
+ # get "/foo" => "foo#index"
1720
+ # end
1721
+ #
1722
+ # Now, you can use the <tt>my_engine</tt> helper inside your application:
1723
+ #
1724
+ # class FooController < ApplicationController
1725
+ # def index
1726
+ # my_engine.root_url # => /my_engine/
1727
+ # end
1728
+ # end
1729
+ #
1730
+ # There is also a <tt>main_app</tt> helper that gives you access to application's routes inside Engine:
1731
+ #
1732
+ # module MyEngine
1733
+ # class BarController
1734
+ # def index
1735
+ # main_app.foo_path # => /foo
1736
+ # end
1737
+ # end
1738
+ # end
1739
+ #
1740
+ # Note that the <tt>:as</tt> option given to mount takes the <tt>engine_name</tt> as default, so most of the time
1741
+ # you can simply omit it.
1742
+ #
1743
+ # Finally, if you want to generate a URL to an engine's route using
1744
+ # <tt>polymorphic_url</tt>, you also need to pass the engine helper. Let's
1745
+ # say that you want to create a form pointing to one of the engine's routes.
1746
+ # All you need to do is pass the helper as the first element in array with
1747
+ # attributes for URL:
1748
+ #
1749
+ # form_with(model: [my_engine, @user])
1750
+ #
1751
+ # This code will use <tt>my_engine.user_path(@user)</tt> to generate the proper route.
1752
+ #
1753
+ # == Isolated engine's helpers
1754
+ #
1755
+ # Sometimes you may want to isolate an engine, but use helpers that are defined for it.
1756
+ # If you want to share just a few specific helpers you can add them to application's
1757
+ # helpers in ApplicationController:
1758
+ #
1759
+ # class ApplicationController < ActionController::Base
1760
+ # helper MyEngine::SharedEngineHelper
1761
+ # end
1762
+ #
1763
+ # If you want to include all of the engine's helpers, you can use the #helper method on an engine's
1764
+ # instance:
1765
+ #
1766
+ # class ApplicationController < ActionController::Base
1767
+ # helper MyEngine::Engine.helpers
1768
+ # end
1769
+ #
1770
+ # It will include all of the helpers from engine's directory. Take into account this does
1771
+ # not include helpers defined in controllers with helper_method or other similar solutions,
1772
+ # only helpers defined in the helpers directory will be included.
1773
+ #
1774
+ # == Migrations & seed data
1775
+ #
1776
+ # Engines can have their own migrations. The default path for migrations is exactly the same
1777
+ # as in application: <tt>db/migrate</tt>
1778
+ #
1779
+ # To use engine's migrations in application you can use the rake task below, which copies them to
1780
+ # application's dir:
1781
+ #
1782
+ # $ rake ENGINE_NAME:install:migrations
1783
+ #
1784
+ # Note that some of the migrations may be skipped if a migration with the same name already exists
1785
+ # in application. In such a situation you must decide whether to leave that migration or rename the
1786
+ # migration in the application and rerun copying migrations.
1787
+ #
1788
+ # If your engine has migrations, you may also want to prepare data for the database in
1789
+ # the <tt>db/seeds.rb</tt> file. You can load that data using the <tt>load_seed</tt> method, e.g.
1790
+ #
1791
+ # MyEngine::Engine.load_seed
1792
+ #
1793
+ # == Loading priority
1794
+ #
1795
+ # In order to change engine's priority you can use +config.railties_order+ in the main application.
1796
+ # It will affect the priority of loading views, helpers, assets, and all the other files
1797
+ # related to engine or application.
1798
+ #
1799
+ # # load Blog::Engine with highest priority, followed by application and other railties
1800
+ # config.railties_order = [Blog::Engine, :main_app, :all]
1801
+ #
1802
+ # pkg:gem/railties#lib/rails/engine/railties.rb:4
1803
+ class Rails::Engine < ::Rails::Railtie
1804
+ include ::ActiveSupport::Callbacks
1805
+ extend ::ActiveSupport::Callbacks::ClassMethods
1806
+
1807
+ # pkg:gem/railties#lib/rails/engine.rb:439
1808
+ def initialize; end
1809
+
1810
+ # pkg:gem/railties#lib/rails/engine.rb:433
1811
+ def __callbacks; end
1812
+
1813
+ # pkg:gem/railties#lib/rails/engine.rb:434
1814
+ def _load_seed_callbacks; end
1815
+
1816
+ # pkg:gem/railties#lib/rails/engine.rb:434
1817
+ def _run_load_seed_callbacks; end
1818
+
1819
+ # pkg:gem/railties#lib/rails/engine.rb:434
1820
+ def _run_load_seed_callbacks!(&block); end
1821
+
1822
+ # Returns the underlying Rack application for this engine.
1823
+ #
1824
+ # pkg:gem/railties#lib/rails/engine.rb:515
1825
+ def app; end
1826
+
1827
+ # Define the Rack API for this engine.
1828
+ #
1829
+ # pkg:gem/railties#lib/rails/engine.rb:532
1830
+ def call(env); end
1831
+
1832
+ # Define the configuration object for the engine.
1833
+ #
1834
+ # pkg:gem/railties#lib/rails/engine.rb:551
1835
+ def config; end
1836
+
1837
+ # pkg:gem/railties#lib/rails/engine.rb:489
1838
+ def eager_load!; end
1839
+
1840
+ # Returns the endpoint for this engine. If none is registered,
1841
+ # defaults to an ActionDispatch::Routing::RouteSet.
1842
+ #
1843
+ # pkg:gem/railties#lib/rails/engine.rb:527
1844
+ def endpoint; end
1845
+
1846
+ # pkg:gem/railties#lib/rails/engine.rb:437
1847
+ def engine_name(*_arg0, **_arg1, &_arg2); end
1848
+
1849
+ # Defines additional Rack env configuration that is added on each call.
1850
+ #
1851
+ # pkg:gem/railties#lib/rails/engine.rb:538
1852
+ def env_config; end
1853
+
1854
+ # Returns a module with all the helpers defined for the engine.
1855
+ #
1856
+ # pkg:gem/railties#lib/rails/engine.rb:499
1857
+ def helpers; end
1858
+
1859
+ # Returns all registered helpers paths.
1860
+ #
1861
+ # pkg:gem/railties#lib/rails/engine.rb:510
1862
+ def helpers_paths; end
1863
+
1864
+ # pkg:gem/railties#lib/rails/engine.rb:437
1865
+ def isolated?(&_arg0); end
1866
+
1867
+ # Load console and invoke the registered hooks.
1868
+ # Check Rails::Railtie.console for more info.
1869
+ #
1870
+ # pkg:gem/railties#lib/rails/engine.rb:453
1871
+ def load_console(app = T.unsafe(nil)); end
1872
+
1873
+ # Load \Rails generators and invoke the registered hooks.
1874
+ # Check Rails::Railtie.generators for more info.
1875
+ #
1876
+ # pkg:gem/railties#lib/rails/engine.rb:475
1877
+ def load_generators(app = T.unsafe(nil)); end
1878
+
1879
+ # Load \Rails runner and invoke the registered hooks.
1880
+ # Check Rails::Railtie.runner for more info.
1881
+ #
1882
+ # pkg:gem/railties#lib/rails/engine.rb:460
1883
+ def load_runner(app = T.unsafe(nil)); end
1884
+
1885
+ # Load data from db/seeds.rb file. It can be used in to load engines'
1886
+ # seeds, e.g.:
1887
+ #
1888
+ # Blog::Engine.load_seed
1889
+ #
1890
+ # pkg:gem/railties#lib/rails/engine.rb:559
1891
+ def load_seed; end
1892
+
1893
+ # Invoke the server registered hooks.
1894
+ # Check Rails::Railtie.server for more info.
1895
+ #
1896
+ # pkg:gem/railties#lib/rails/engine.rb:484
1897
+ def load_server(app = T.unsafe(nil)); end
1898
+
1899
+ # Load Rake and railties tasks, and invoke the registered hooks.
1900
+ # Check Rails::Railtie.rake_tasks for more info.
1901
+ #
1902
+ # pkg:gem/railties#lib/rails/engine.rb:467
1903
+ def load_tasks(app = T.unsafe(nil)); end
1904
+
1905
+ # pkg:gem/railties#lib/rails/engine.rb:436
1906
+ def middleware(*_arg0, **_arg1, &_arg2); end
1907
+
1908
+ # pkg:gem/railties#lib/rails/engine.rb:436
1909
+ def paths(*_arg0, **_arg1, &_arg2); end
1910
+
1911
+ # pkg:gem/railties#lib/rails/engine.rb:494
1912
+ def railties; end
1913
+
1914
+ # pkg:gem/railties#lib/rails/engine.rb:436
1915
+ def root(*_arg0, **_arg1, &_arg2); end
1916
+
1917
+ # Defines the routes for this engine. If a block is given to
1918
+ # routes, it is appended to the engine.
1919
+ #
1920
+ # pkg:gem/railties#lib/rails/engine.rb:544
1921
+ def routes(&block); end
1922
+
1923
+ # pkg:gem/railties#lib/rails/engine.rb:679
1924
+ def routes?; end
1925
+
1926
+ protected
1927
+
1928
+ # pkg:gem/railties#lib/rails/engine.rb:684
1929
+ def run_tasks_blocks(*_arg0); end
1930
+
1931
+ private
1932
+
1933
+ # pkg:gem/railties#lib/rails/engine.rb:716
1934
+ def _all_autoload_once_paths; end
1935
+
1936
+ # pkg:gem/railties#lib/rails/engine.rb:720
1937
+ def _all_autoload_paths; end
1938
+
1939
+ # pkg:gem/railties#lib/rails/engine.rb:729
1940
+ def _all_load_paths(add_autoload_paths_to_load_path); end
1941
+
1942
+ # pkg:gem/railties#lib/rails/engine.rb:754
1943
+ def build_middleware; end
1944
+
1945
+ # pkg:gem/railties#lib/rails/engine.rb:746
1946
+ def build_request(env); end
1947
+
1948
+ # pkg:gem/railties#lib/rails/engine.rb:712
1949
+ def default_middleware_stack; end
1950
+
1951
+ # pkg:gem/railties#lib/rails/engine.rb:740
1952
+ def fixtures_in_root_and_not_in_vendor_or_dot_dir?(fixtures); end
1953
+
1954
+ # pkg:gem/railties#lib/rails/engine.rb:696
1955
+ def has_migrations?; end
1956
+
1957
+ # pkg:gem/railties#lib/rails/engine.rb:690
1958
+ def load_config_initializer(initializer); end
1959
+
1960
+ class << self
1961
+ # pkg:gem/railties#lib/rails/engine.rb:433
1962
+ def __callbacks; end
1963
+
1964
+ # pkg:gem/railties#lib/rails/engine.rb:433
1965
+ def __callbacks=(value); end
1966
+
1967
+ # pkg:gem/railties#lib/rails/engine.rb:434
1968
+ def _load_seed_callbacks; end
1969
+
1970
+ # pkg:gem/railties#lib/rails/engine.rb:434
1971
+ def _load_seed_callbacks=(value); end
1972
+
1973
+ # pkg:gem/railties#lib/rails/engine.rb:353
1974
+ def called_from; end
1975
+
1976
+ # pkg:gem/railties#lib/rails/engine.rb:353
1977
+ def called_from=(_arg0); end
1978
+
1979
+ # pkg:gem/railties#lib/rails/engine.rb:358
1980
+ def eager_load!(*_arg0, **_arg1, &_arg2); end
1981
+
1982
+ # pkg:gem/railties#lib/rails/engine.rb:378
1983
+ def endpoint(endpoint = T.unsafe(nil)); end
1984
+
1985
+ # pkg:gem/railties#lib/rails/engine.rb:356
1986
+ def engine_name(name = T.unsafe(nil)); end
1987
+
1988
+ # Finds engine with given path.
1989
+ #
1990
+ # pkg:gem/railties#lib/rails/engine.rb:423
1991
+ def find(path); end
1992
+
1993
+ # pkg:gem/railties#lib/rails/engine.rb:374
1994
+ def find_root(from); end
1995
+
1996
+ # pkg:gem/railties#lib/rails/engine.rb:700
1997
+ def find_root_with_flag(flag, root_path, default = T.unsafe(nil)); end
1998
+
1999
+ # pkg:gem/railties#lib/rails/engine.rb:360
2000
+ def inherited(base); end
2001
+
2002
+ # pkg:gem/railties#lib/rails/engine.rb:384
2003
+ def isolate_namespace(mod); end
2004
+
2005
+ # pkg:gem/railties#lib/rails/engine.rb:353
2006
+ def isolated; end
2007
+
2008
+ # pkg:gem/railties#lib/rails/engine.rb:353
2009
+ def isolated=(_arg0); end
2010
+
2011
+ # pkg:gem/railties#lib/rails/engine.rb:355
2012
+ def isolated?; end
2013
+
2014
+ private
2015
+
2016
+ # pkg:gem/railties#lib/rails/engine.rb:433
2017
+ def __class_attr___callbacks; end
2018
+
2019
+ # pkg:gem/railties#lib/rails/engine.rb:433
2020
+ def __class_attr___callbacks=(new_value); end
2021
+ end
2022
+ end
2023
+
2024
+ # pkg:gem/railties#lib/rails/engine/configuration.rb:7
2025
+ class Rails::Engine::Configuration < ::Rails::Railtie::Configuration
2026
+ # pkg:gem/railties#lib/rails/engine/configuration.rb:41
2027
+ def initialize(root = T.unsafe(nil)); end
2028
+
2029
+ # Private method that adds custom autoload once paths to the ones defined
2030
+ # by +paths+.
2031
+ #
2032
+ # pkg:gem/railties#lib/rails/engine/configuration.rb:127
2033
+ def all_autoload_once_paths; end
2034
+
2035
+ # Private method that adds custom autoload paths to the ones defined by
2036
+ # +paths+.
2037
+ #
2038
+ # pkg:gem/railties#lib/rails/engine/configuration.rb:121
2039
+ def all_autoload_paths; end
2040
+
2041
+ # Private method that adds custom eager load paths to the ones defined by
2042
+ # +paths+.
2043
+ #
2044
+ # pkg:gem/railties#lib/rails/engine/configuration.rb:133
2045
+ def all_eager_load_paths; end
2046
+
2047
+ # An array of custom autoload once paths. These won't be eager loaded
2048
+ # unless you push them to +eager_load_paths+ too, which is recommended.
2049
+ #
2050
+ # This collection is empty by default, it accepts strings and +Pathname+
2051
+ # objects.
2052
+ #
2053
+ # If you'd like to add +lib+ to it, please see +autoload_lib_once+.
2054
+ #
2055
+ # pkg:gem/railties#lib/rails/engine/configuration.rb:29
2056
+ def autoload_once_paths; end
2057
+
2058
+ # An array of custom autoload once paths. These won't be eager loaded
2059
+ # unless you push them to +eager_load_paths+ too, which is recommended.
2060
+ #
2061
+ # This collection is empty by default, it accepts strings and +Pathname+
2062
+ # objects.
2063
+ #
2064
+ # If you'd like to add +lib+ to it, please see +autoload_lib_once+.
2065
+ #
2066
+ # pkg:gem/railties#lib/rails/engine/configuration.rb:10
2067
+ def autoload_once_paths=(_arg0); end
2068
+
2069
+ # An array of custom autoload paths to be added to the ones defined
2070
+ # automatically by Rails. These won't be eager loaded, unless you push
2071
+ # them to +eager_load_paths+ too, which is recommended.
2072
+ #
2073
+ # This collection is empty by default, it accepts strings and +Pathname+
2074
+ # objects.
2075
+ #
2076
+ # If you'd like to add +lib+ to it, please see +autoload_lib+.
2077
+ #
2078
+ # pkg:gem/railties#lib/rails/engine/configuration.rb:20
2079
+ def autoload_paths; end
2080
+
2081
+ # An array of custom autoload paths to be added to the ones defined
2082
+ # automatically by Rails. These won't be eager loaded, unless you push
2083
+ # them to +eager_load_paths+ too, which is recommended.
2084
+ #
2085
+ # This collection is empty by default, it accepts strings and +Pathname+
2086
+ # objects.
2087
+ #
2088
+ # If you'd like to add +lib+ to it, please see +autoload_lib+.
2089
+ #
2090
+ # pkg:gem/railties#lib/rails/engine/configuration.rb:10
2091
+ def autoload_paths=(_arg0); end
2092
+
2093
+ # pkg:gem/railties#lib/rails/engine/configuration.rb:9
2094
+ def default_scope; end
2095
+
2096
+ # pkg:gem/railties#lib/rails/engine/configuration.rb:9
2097
+ def default_scope=(_arg0); end
2098
+
2099
+ # An array of custom eager load paths to be added to the ones defined
2100
+ # automatically by Rails. Anything in this collection is considered to be
2101
+ # an autoload path regardless of whether it was added to +autoload_paths+.
2102
+ #
2103
+ # This collection is empty by default, it accepts strings and +Pathname+
2104
+ # objects.
2105
+ #
2106
+ # If you'd like to add +lib+ to it, please see +autoload_lib+.
2107
+ #
2108
+ # pkg:gem/railties#lib/rails/engine/configuration.rb:39
2109
+ def eager_load_paths; end
2110
+
2111
+ # An array of custom eager load paths to be added to the ones defined
2112
+ # automatically by Rails. Anything in this collection is considered to be
2113
+ # an autoload path regardless of whether it was added to +autoload_paths+.
2114
+ #
2115
+ # This collection is empty by default, it accepts strings and +Pathname+
2116
+ # objects.
2117
+ #
2118
+ # If you'd like to add +lib+ to it, please see +autoload_lib+.
2119
+ #
2120
+ # pkg:gem/railties#lib/rails/engine/configuration.rb:10
2121
+ def eager_load_paths=(_arg0); end
2122
+
2123
+ # Holds generators configuration:
2124
+ #
2125
+ # config.generators do |g|
2126
+ # g.orm :data_mapper, migration: true
2127
+ # g.template_engine :haml
2128
+ # g.test_framework :rspec
2129
+ # end
2130
+ #
2131
+ # If you want to disable color in console, do:
2132
+ #
2133
+ # config.generators.colorize_logging = false
2134
+ #
2135
+ # pkg:gem/railties#lib/rails/engine/configuration.rb:67
2136
+ def generators; end
2137
+
2138
+ # pkg:gem/railties#lib/rails/engine/configuration.rb:9
2139
+ def javascript_path; end
2140
+
2141
+ # pkg:gem/railties#lib/rails/engine/configuration.rb:9
2142
+ def javascript_path=(_arg0); end
2143
+
2144
+ # pkg:gem/railties#lib/rails/engine/configuration.rb:9
2145
+ def middleware; end
2146
+
2147
+ # pkg:gem/railties#lib/rails/engine/configuration.rb:9
2148
+ def middleware=(_arg0); end
2149
+
2150
+ # pkg:gem/railties#lib/rails/engine/configuration.rb:73
2151
+ def paths; end
2152
+
2153
+ # pkg:gem/railties#lib/rails/engine/configuration.rb:8
2154
+ def root; end
2155
+
2156
+ # pkg:gem/railties#lib/rails/engine/configuration.rb:115
2157
+ def root=(value); end
2158
+
2159
+ # pkg:gem/railties#lib/rails/engine/configuration.rb:9
2160
+ def route_set_class; end
2161
+
2162
+ # pkg:gem/railties#lib/rails/engine/configuration.rb:9
2163
+ def route_set_class=(_arg0); end
2164
+ end
2165
+
2166
+ # pkg:gem/railties#lib/rails/engine/lazy_route_set.rb:11
2167
+ class Rails::Engine::LazyRouteSet < ::ActionDispatch::Routing::RouteSet
2168
+ # pkg:gem/railties#lib/rails/engine/lazy_route_set.rb:41
2169
+ def initialize(config = T.unsafe(nil)); end
2170
+
2171
+ # pkg:gem/railties#lib/rails/engine/lazy_route_set.rb:58
2172
+ def call(req); end
2173
+
2174
+ # pkg:gem/railties#lib/rails/engine/lazy_route_set.rb:68
2175
+ def draw(&block); end
2176
+
2177
+ # pkg:gem/railties#lib/rails/engine/lazy_route_set.rb:48
2178
+ def generate_extras(options, recall = T.unsafe(nil)); end
2179
+
2180
+ # pkg:gem/railties#lib/rails/engine/lazy_route_set.rb:54
2181
+ def generate_url_helpers(supports_path); end
2182
+
2183
+ # pkg:gem/railties#lib/rails/engine/lazy_route_set.rb:63
2184
+ def polymorphic_mappings; end
2185
+
2186
+ # pkg:gem/railties#lib/rails/engine/lazy_route_set.rb:73
2187
+ def recognize_path(path, environment = T.unsafe(nil)); end
2188
+
2189
+ # pkg:gem/railties#lib/rails/engine/lazy_route_set.rb:78
2190
+ def recognize_path_with_request(*_arg0, **_arg1, &_arg2); end
2191
+
2192
+ # pkg:gem/railties#lib/rails/engine/lazy_route_set.rb:83
2193
+ def routes; end
2194
+
2195
+ private
2196
+
2197
+ # pkg:gem/railties#lib/rails/engine/lazy_route_set.rb:89
2198
+ def method_missing_module; end
2199
+ end
2200
+
2201
+ # pkg:gem/railties#lib/rails/engine/lazy_route_set.rb:12
2202
+ class Rails::Engine::LazyRouteSet::NamedRouteCollection < ::ActionDispatch::Routing::RouteSet::NamedRouteCollection
2203
+ # pkg:gem/railties#lib/rails/engine/lazy_route_set.rb:13
2204
+ def route_defined?(name); end
2205
+ end
2206
+
2207
+ # pkg:gem/railties#lib/rails/engine/lazy_route_set.rb:19
2208
+ module Rails::Engine::LazyRouteSet::ProxyUrlHelpers
2209
+ # pkg:gem/railties#lib/rails/engine/lazy_route_set.rb:25
2210
+ def full_url_for(options); end
2211
+
2212
+ # pkg:gem/railties#lib/rails/engine/lazy_route_set.rb:35
2213
+ def optimize_routes_generation?; end
2214
+
2215
+ # pkg:gem/railties#lib/rails/engine/lazy_route_set.rb:30
2216
+ def route_for(name, *args); end
2217
+
2218
+ # pkg:gem/railties#lib/rails/engine/lazy_route_set.rb:20
2219
+ def url_for(options); end
2220
+ end
2221
+
2222
+ # pkg:gem/railties#lib/rails/engine/railties.rb:5
2223
+ class Rails::Engine::Railties
2224
+ include ::Enumerable
2225
+
2226
+ # pkg:gem/railties#lib/rails/engine/railties.rb:9
2227
+ def initialize; end
2228
+
2229
+ # pkg:gem/railties#lib/rails/engine/railties.rb:18
2230
+ def -(others); end
2231
+
2232
+ # pkg:gem/railties#lib/rails/engine/railties.rb:7
2233
+ def _all; end
2234
+
2235
+ # pkg:gem/railties#lib/rails/engine/railties.rb:14
2236
+ def each(*args, &block); end
2237
+ end
2238
+
2239
+ # Built-in Health Check Endpoint
2240
+ #
2241
+ # \Rails also comes with a built-in health check endpoint that is reachable at
2242
+ # the +/up+ path. This endpoint will return a 200 status code if the app has
2243
+ # booted with no exceptions, and a 500 status code otherwise.
2244
+ #
2245
+ # In production, many applications are required to report their status upstream,
2246
+ # whether it's to an uptime monitor that will page an engineer when things go
2247
+ # wrong, or a load balancer or Kubernetes controller used to determine a pod's
2248
+ # health. This health check is designed to be a one-size fits all that will work
2249
+ # in many situations.
2250
+ #
2251
+ # While any newly generated \Rails applications will have the health check at
2252
+ # +/up+, you can configure the path to be anything you'd like in your
2253
+ # <tt>"config/routes.rb"</tt>:
2254
+ #
2255
+ # Rails.application.routes.draw do
2256
+ # get "healthz" => "rails/health#show", as: :rails_health_check
2257
+ # end
2258
+ #
2259
+ # The health check will now be accessible via the +/healthz+ path.
2260
+ #
2261
+ # NOTE: This endpoint does not reflect the status of all of your application's
2262
+ # dependencies, such as the database or Redis cluster. Replace
2263
+ # <tt>"rails/health#show"</tt> with your own controller action if you have
2264
+ # application specific needs.
2265
+ #
2266
+ # Think carefully about what you want to check as it can lead to situations
2267
+ # where your application is being restarted due to a third-party service going
2268
+ # bad. Ideally, you should design your application to handle those outages
2269
+ # gracefully.
2270
+ #
2271
+ # pkg:gem/railties#lib/rails/health_controller.rb:37
2272
+ class Rails::HealthController < ::ActionController::Base
2273
+ # pkg:gem/railties#lib/rails/health_controller.rb:40
2274
+ def show; end
2275
+
2276
+ private
2277
+
2278
+ # pkg:gem/railties#lib/rails/health_controller.rb:37
2279
+ def _layout(lookup_context, formats, keys); end
2280
+
2281
+ # pkg:gem/railties#lib/rails/health_controller.rb:59
2282
+ def html_status(color:); end
2283
+
2284
+ # pkg:gem/railties#lib/rails/health_controller.rb:52
2285
+ def render_down; end
2286
+
2287
+ # pkg:gem/railties#lib/rails/health_controller.rb:45
2288
+ def render_up; end
2289
+
2290
+ class << self
2291
+ private
2292
+
2293
+ # pkg:gem/railties#lib/rails/health_controller.rb:37
2294
+ def __class_attr_config; end
2295
+
2296
+ # pkg:gem/railties#lib/rails/health_controller.rb:37
2297
+ def __class_attr_config=(new_value); end
2298
+
2299
+ # pkg:gem/railties#lib/rails/health_controller.rb:37
2300
+ def __class_attr_middleware_stack; end
2301
+
2302
+ # pkg:gem/railties#lib/rails/health_controller.rb:37
2303
+ def __class_attr_middleware_stack=(new_value); end
2304
+
2305
+ # pkg:gem/railties#lib/rails/health_controller.rb:38
2306
+ def __class_attr_rescue_handlers; end
2307
+
2308
+ # pkg:gem/railties#lib/rails/health_controller.rb:38
2309
+ def __class_attr_rescue_handlers=(new_value); end
2310
+ end
2311
+ end
2312
+
2313
+ # This module helps build the runtime properties that are displayed in
2314
+ # Rails::InfoController responses. These include the active \Rails version,
2315
+ # Ruby version, Rack version, and so on.
2316
+ #
2317
+ # pkg:gem/railties#lib/rails/info.rb:9
2318
+ module Rails::Info
2319
+ # pkg:gem/railties#lib/rails/info.rb:10
2320
+ def properties; end
2321
+
2322
+ # pkg:gem/railties#lib/rails/info.rb:10
2323
+ def properties=(val); end
2324
+
2325
+ class << self
2326
+ # pkg:gem/railties#lib/rails/info.rb:41
2327
+ def inspect; end
2328
+
2329
+ # pkg:gem/railties#lib/rails/info.rb:10
2330
+ def properties; end
2331
+
2332
+ # pkg:gem/railties#lib/rails/info.rb:10
2333
+ def properties=(val); end
2334
+
2335
+ # pkg:gem/railties#lib/rails/info.rb:25
2336
+ def property(name, value = T.unsafe(nil)); end
2337
+
2338
+ # pkg:gem/railties#lib/rails/info.rb:43
2339
+ def to_html; end
2340
+
2341
+ # pkg:gem/railties#lib/rails/info.rb:31
2342
+ def to_s; end
2343
+ end
2344
+ end
2345
+
2346
+ # pkg:gem/railties#lib/rails/info_controller.rb:6
2347
+ class Rails::InfoController < ::Rails::ApplicationController
2348
+ # pkg:gem/railties#lib/rails/info_controller.rb:12
2349
+ def index; end
2350
+
2351
+ # pkg:gem/railties#lib/rails/info_controller.rb:35
2352
+ def notes; end
2353
+
2354
+ # pkg:gem/railties#lib/rails/info_controller.rb:16
2355
+ def properties; end
2356
+
2357
+ # pkg:gem/railties#lib/rails/info_controller.rb:21
2358
+ def routes; end
2359
+
2360
+ private
2361
+
2362
+ # pkg:gem/railties#lib/rails/info_controller.rb:6
2363
+ def _layout(lookup_context, formats, keys); end
2364
+
2365
+ # pkg:gem/railties#lib/rails/info_controller.rb:8
2366
+ def _layout_from_proc; end
2367
+
2368
+ # pkg:gem/railties#lib/rails/info_controller.rb:43
2369
+ def matching_routes(query:, exact_match:); end
2370
+
2371
+ class << self
2372
+ private
2373
+
2374
+ # pkg:gem/railties#lib/rails/info_controller.rb:10
2375
+ def __class_attr___callbacks; end
2376
+
2377
+ # pkg:gem/railties#lib/rails/info_controller.rb:10
2378
+ def __class_attr___callbacks=(new_value); end
2379
+
2380
+ # pkg:gem/railties#lib/rails/info_controller.rb:8
2381
+ def __class_attr__layout; end
2382
+
2383
+ # pkg:gem/railties#lib/rails/info_controller.rb:8
2384
+ def __class_attr__layout=(new_value); end
2385
+
2386
+ # pkg:gem/railties#lib/rails/info_controller.rb:8
2387
+ def __class_attr__layout_conditions; end
2388
+
2389
+ # pkg:gem/railties#lib/rails/info_controller.rb:8
2390
+ def __class_attr__layout_conditions=(new_value); end
2391
+
2392
+ # pkg:gem/railties#lib/rails/info_controller.rb:6
2393
+ def __class_attr_config; end
2394
+
2395
+ # pkg:gem/railties#lib/rails/info_controller.rb:6
2396
+ def __class_attr_config=(new_value); end
2397
+
2398
+ # pkg:gem/railties#lib/rails/info_controller.rb:6
2399
+ def __class_attr_middleware_stack; end
2400
+
2401
+ # pkg:gem/railties#lib/rails/info_controller.rb:6
2402
+ def __class_attr_middleware_stack=(new_value); end
2403
+ end
2404
+ end
2405
+
2406
+ # pkg:gem/railties#lib/rails/initializable.rb:6
2407
+ module Rails::Initializable
2408
+ mixes_in_class_methods ::Rails::Initializable::ClassMethods
2409
+
2410
+ # pkg:gem/railties#lib/rails/initializable.rb:108
2411
+ def initializers; end
2412
+
2413
+ # pkg:gem/railties#lib/rails/initializable.rb:100
2414
+ def run_initializers(group = T.unsafe(nil), *args); end
2415
+
2416
+ class << self
2417
+ # pkg:gem/railties#lib/rails/initializable.rb:7
2418
+ def included(base); end
2419
+ end
2420
+ end
2421
+
2422
+ # pkg:gem/railties#lib/rails/initializable.rb:112
2423
+ module Rails::Initializable::ClassMethods
2424
+ # pkg:gem/railties#lib/rails/initializable.rb:130
2425
+ def initializer(name, opts = T.unsafe(nil), &blk); end
2426
+
2427
+ # pkg:gem/railties#lib/rails/initializable.rb:113
2428
+ def initializers; end
2429
+
2430
+ # pkg:gem/railties#lib/rails/initializable.rb:117
2431
+ def initializers_chain; end
2432
+
2433
+ # pkg:gem/railties#lib/rails/initializable.rb:126
2434
+ def initializers_for(binding); end
2435
+ end
2436
+
2437
+ # pkg:gem/railties#lib/rails/initializable.rb:37
2438
+ class Rails::Initializable::Collection
2439
+ include ::Enumerable
2440
+ include ::TSort
2441
+
2442
+ # pkg:gem/railties#lib/rails/initializable.rb:43
2443
+ def initialize(initializers = T.unsafe(nil)); end
2444
+
2445
+ # pkg:gem/railties#lib/rails/initializable.rb:69
2446
+ def +(other); end
2447
+
2448
+ # pkg:gem/railties#lib/rails/initializable.rb:73
2449
+ def <<(initializer); end
2450
+
2451
+ # pkg:gem/railties#lib/rails/initializable.rb:86
2452
+ def append(*initializers); end
2453
+
2454
+ # pkg:gem/railties#lib/rails/initializable.rb:88
2455
+ def concat(*initializer_collections); end
2456
+
2457
+ # pkg:gem/railties#lib/rails/initializable.rb:58
2458
+ def each(&block); end
2459
+
2460
+ # pkg:gem/railties#lib/rails/initializable.rb:95
2461
+ def has?(name); end
2462
+
2463
+ # pkg:gem/railties#lib/rails/initializable.rb:54
2464
+ def last; end
2465
+
2466
+ # pkg:gem/railties#lib/rails/initializable.rb:41
2467
+ def method_missing(method, *_arg1, **_arg2, &_arg3); end
2468
+
2469
+ # pkg:gem/railties#lib/rails/initializable.rb:81
2470
+ def push(*initializers); end
2471
+
2472
+ # pkg:gem/railties#lib/rails/initializable.rb:50
2473
+ def to_a; end
2474
+
2475
+ # pkg:gem/railties#lib/rails/initializable.rb:63
2476
+ def tsort_each_child(initializer, &block); end
2477
+
2478
+ # pkg:gem/railties#lib/rails/initializable.rb:62
2479
+ def tsort_each_node(&block); end
2480
+
2481
+ private
2482
+
2483
+ # pkg:gem/railties#lib/rails/initializable.rb:41
2484
+ def respond_to_missing?(name, include_private = T.unsafe(nil)); end
2485
+ end
2486
+
2487
+ # pkg:gem/railties#lib/rails/initializable.rb:11
2488
+ class Rails::Initializable::Initializer
2489
+ # pkg:gem/railties#lib/rails/initializable.rb:14
2490
+ def initialize(name, context, before:, after:, group: T.unsafe(nil), &block); end
2491
+
2492
+ # pkg:gem/railties#lib/rails/initializable.rb:12
2493
+ def after; end
2494
+
2495
+ # pkg:gem/railties#lib/rails/initializable.rb:12
2496
+ def before; end
2497
+
2498
+ # pkg:gem/railties#lib/rails/initializable.rb:19
2499
+ def belongs_to?(group); end
2500
+
2501
+ # pkg:gem/railties#lib/rails/initializable.rb:27
2502
+ def bind(context); end
2503
+
2504
+ # pkg:gem/railties#lib/rails/initializable.rb:12
2505
+ def block; end
2506
+
2507
+ # pkg:gem/railties#lib/rails/initializable.rb:32
2508
+ def context_class; end
2509
+
2510
+ # pkg:gem/railties#lib/rails/initializable.rb:12
2511
+ def name; end
2512
+
2513
+ # pkg:gem/railties#lib/rails/initializable.rb:23
2514
+ def run(*args); end
2515
+ end
2516
+
2517
+ # pkg:gem/railties#lib/rails/mailers_controller.rb:6
2518
+ class Rails::MailersController < ::Rails::ApplicationController
2519
+ # pkg:gem/railties#lib/rails/mailers_controller.rb:22
2520
+ def download; end
2521
+
2522
+ # pkg:gem/railties#lib/rails/mailers_controller.rb:17
2523
+ def index; end
2524
+
2525
+ # pkg:gem/railties#lib/rails/mailers_controller.rb:32
2526
+ def preview; end
2527
+
2528
+ private
2529
+
2530
+ # pkg:gem/railties#lib/rails/mailers_controller.rb:6
2531
+ def _layout(lookup_context, formats, keys); end
2532
+
2533
+ # pkg:gem/railties#lib/rails/mailers_controller.rb:107
2534
+ def attachment_url(attachment); end
2535
+
2536
+ # pkg:gem/railties#lib/rails/mailers_controller.rb:101
2537
+ def attachments_for(email); end
2538
+
2539
+ # pkg:gem/railties#lib/rails/mailers_controller.rb:93
2540
+ def find_part(format); end
2541
+
2542
+ # pkg:gem/railties#lib/rails/mailers_controller.rb:81
2543
+ def find_preferred_part(*formats); end
2544
+
2545
+ # pkg:gem/railties#lib/rails/mailers_controller.rb:69
2546
+ def find_preview; end
2547
+
2548
+ # pkg:gem/railties#lib/rails/mailers_controller.rb:115
2549
+ def locale_query(locale); end
2550
+
2551
+ # pkg:gem/railties#lib/rails/mailers_controller.rb:111
2552
+ def part_query(mime_type); end
2553
+
2554
+ # pkg:gem/railties#lib/rails/mailers_controller.rb:119
2555
+ def set_locale(&block); end
2556
+
2557
+ # pkg:gem/railties#lib/rails/mailers_controller.rb:65
2558
+ def show_previews?; end
2559
+
2560
+ class << self
2561
+ private
2562
+
2563
+ # pkg:gem/railties#lib/rails/mailers_controller.rb:9
2564
+ def __class_attr___callbacks; end
2565
+
2566
+ # pkg:gem/railties#lib/rails/mailers_controller.rb:9
2567
+ def __class_attr___callbacks=(new_value); end
2568
+
2569
+ # pkg:gem/railties#lib/rails/mailers_controller.rb:13
2570
+ def __class_attr__helper_methods; end
2571
+
2572
+ # pkg:gem/railties#lib/rails/mailers_controller.rb:13
2573
+ def __class_attr__helper_methods=(new_value); end
2574
+
2575
+ # pkg:gem/railties#lib/rails/mailers_controller.rb:6
2576
+ def __class_attr_config; end
2577
+
2578
+ # pkg:gem/railties#lib/rails/mailers_controller.rb:6
2579
+ def __class_attr_config=(new_value); end
2580
+
2581
+ # pkg:gem/railties#lib/rails/mailers_controller.rb:6
2582
+ def __class_attr_middleware_stack; end
2583
+
2584
+ # pkg:gem/railties#lib/rails/mailers_controller.rb:6
2585
+ def __class_attr_middleware_stack=(new_value); end
2586
+ end
2587
+ end
2588
+
2589
+ # pkg:gem/railties#lib/rails/mailers_controller.rb:13
2590
+ module Rails::MailersController::HelperMethods
2591
+ include ::ActionController::Base::HelperMethods
2592
+
2593
+ # pkg:gem/railties#lib/rails/mailers_controller.rb:13
2594
+ def attachment_url(*_arg0, **_arg1, &_arg2); end
2595
+
2596
+ # pkg:gem/railties#lib/rails/mailers_controller.rb:13
2597
+ def locale_query(*_arg0, **_arg1, &_arg2); end
2598
+
2599
+ # pkg:gem/railties#lib/rails/mailers_controller.rb:13
2600
+ def part_query(*_arg0, **_arg1, &_arg2); end
2601
+ end
2602
+
2603
+ # pkg:gem/railties#lib/rails/paths.rb:6
2604
+ module Rails::Paths; end
2605
+
2606
+ # pkg:gem/railties#lib/rails/paths.rb:114
2607
+ class Rails::Paths::Path
2608
+ include ::Enumerable
2609
+
2610
+ # pkg:gem/railties#lib/rails/paths.rb:119
2611
+ def initialize(root, current, paths, options = T.unsafe(nil)); end
2612
+
2613
+ # pkg:gem/railties#lib/rails/paths.rb:171
2614
+ def <<(path); end
2615
+
2616
+ # pkg:gem/railties#lib/rails/paths.rb:132
2617
+ def absolute_current; end
2618
+
2619
+ # pkg:gem/railties#lib/rails/paths.rb:152
2620
+ def autoload!; end
2621
+
2622
+ # pkg:gem/railties#lib/rails/paths.rb:152
2623
+ def autoload?; end
2624
+
2625
+ # pkg:gem/railties#lib/rails/paths.rb:152
2626
+ def autoload_once!; end
2627
+
2628
+ # pkg:gem/railties#lib/rails/paths.rb:152
2629
+ def autoload_once?; end
2630
+
2631
+ # pkg:gem/railties#lib/rails/paths.rb:136
2632
+ def children; end
2633
+
2634
+ # pkg:gem/railties#lib/rails/paths.rb:176
2635
+ def concat(paths); end
2636
+
2637
+ # pkg:gem/railties#lib/rails/paths.rb:167
2638
+ def each(&block); end
2639
+
2640
+ # pkg:gem/railties#lib/rails/paths.rb:152
2641
+ def eager_load!; end
2642
+
2643
+ # pkg:gem/railties#lib/rails/paths.rb:152
2644
+ def eager_load?; end
2645
+
2646
+ # Returns all expanded paths but only if they exist in the filesystem.
2647
+ #
2648
+ # pkg:gem/railties#lib/rails/paths.rb:220
2649
+ def existent; end
2650
+
2651
+ # pkg:gem/railties#lib/rails/paths.rb:231
2652
+ def existent_directories; end
2653
+
2654
+ # Expands all paths against the root and return all unique values.
2655
+ #
2656
+ # pkg:gem/railties#lib/rails/paths.rb:201
2657
+ def expanded; end
2658
+
2659
+ # pkg:gem/railties#lib/rails/paths.rb:196
2660
+ def extensions; end
2661
+
2662
+ # pkg:gem/railties#lib/rails/paths.rb:143
2663
+ def first; end
2664
+
2665
+ # pkg:gem/railties#lib/rails/paths.rb:117
2666
+ def glob; end
2667
+
2668
+ # pkg:gem/railties#lib/rails/paths.rb:117
2669
+ def glob=(_arg0); end
2670
+
2671
+ # pkg:gem/railties#lib/rails/paths.rb:147
2672
+ def last; end
2673
+
2674
+ # pkg:gem/railties#lib/rails/paths.rb:152
2675
+ def load_path!; end
2676
+
2677
+ # pkg:gem/railties#lib/rails/paths.rb:152
2678
+ def load_path?; end
2679
+
2680
+ # pkg:gem/railties#lib/rails/paths.rb:188
2681
+ def paths; end
2682
+
2683
+ # pkg:gem/railties#lib/rails/paths.rb:174
2684
+ def push(path); end
2685
+
2686
+ # pkg:gem/railties#lib/rails/paths.rb:152
2687
+ def skip_autoload!; end
2688
+
2689
+ # pkg:gem/railties#lib/rails/paths.rb:152
2690
+ def skip_autoload_once!; end
2691
+
2692
+ # pkg:gem/railties#lib/rails/paths.rb:152
2693
+ def skip_eager_load!; end
2694
+
2695
+ # pkg:gem/railties#lib/rails/paths.rb:152
2696
+ def skip_load_path!; end
2697
+
2698
+ # pkg:gem/railties#lib/rails/paths.rb:235
2699
+ def to_a; end
2700
+
2701
+ # pkg:gem/railties#lib/rails/paths.rb:184
2702
+ def to_ary; end
2703
+
2704
+ # pkg:gem/railties#lib/rails/paths.rb:180
2705
+ def unshift(*paths); end
2706
+
2707
+ private
2708
+
2709
+ # pkg:gem/railties#lib/rails/paths.rb:238
2710
+ def files_in(path); end
2711
+ end
2712
+
2713
+ # This object is an extended hash that behaves as root of the Rails::Paths system.
2714
+ # It allows you to collect information about how you want to structure your application
2715
+ # paths through a Hash-like \API. It requires you to give a physical path on initialization.
2716
+ #
2717
+ # root = Root.new "/rails"
2718
+ # root.add "app/controllers", eager_load: true
2719
+ #
2720
+ # The above command creates a new root object and adds "app/controllers" as a path.
2721
+ # This means we can get a Rails::Paths::Path object back like below:
2722
+ #
2723
+ # path = root["app/controllers"]
2724
+ # path.eager_load? # => true
2725
+ # path.is_a?(Rails::Paths::Path) # => true
2726
+ #
2727
+ # The Path[rdoc-ref:Rails::Paths::Path] object is simply an enumerable and
2728
+ # allows you to easily add extra paths:
2729
+ #
2730
+ # path.is_a?(Enumerable) # => true
2731
+ # path.to_ary.inspect # => ["app/controllers"]
2732
+ #
2733
+ # path << "lib/controllers"
2734
+ # path.to_ary.inspect # => ["app/controllers", "lib/controllers"]
2735
+ #
2736
+ # Notice that when you add a path using #add, the
2737
+ # Path[rdoc-ref:Rails::Paths::Path] object created already contains the path
2738
+ # with the same path value given to #add. In some situations, you may not
2739
+ # want this behavior, so you can give <tt>:with</tt> as option.
2740
+ #
2741
+ # root.add "config/routes", with: "config/routes.rb"
2742
+ # root["config/routes"].inspect # => ["config/routes.rb"]
2743
+ #
2744
+ # The #add method accepts the following options as arguments:
2745
+ # +eager_load+, +autoload+, +autoload_once+, and +glob+.
2746
+ #
2747
+ # Finally, the Path[rdoc-ref:Rails::Paths::Path] object also provides a few
2748
+ # helpers:
2749
+ #
2750
+ # root = Root.new "/rails"
2751
+ # root.add "app/controllers"
2752
+ #
2753
+ # root["app/controllers"].expanded # => ["/rails/app/controllers"]
2754
+ # root["app/controllers"].existent # => ["/rails/app/controllers"]
2755
+ #
2756
+ # Check the Rails::Paths::Path documentation for more information.
2757
+ #
2758
+ # pkg:gem/railties#lib/rails/paths.rb:51
2759
+ class Rails::Paths::Root
2760
+ # pkg:gem/railties#lib/rails/paths.rb:54
2761
+ def initialize(path); end
2762
+
2763
+ # pkg:gem/railties#lib/rails/paths.rb:69
2764
+ def [](path); end
2765
+
2766
+ # pkg:gem/railties#lib/rails/paths.rb:59
2767
+ def []=(path, value); end
2768
+
2769
+ # pkg:gem/railties#lib/rails/paths.rb:64
2770
+ def add(path, options = T.unsafe(nil)); end
2771
+
2772
+ # pkg:gem/railties#lib/rails/paths.rb:85
2773
+ def all_paths; end
2774
+
2775
+ # pkg:gem/railties#lib/rails/paths.rb:89
2776
+ def autoload_once; end
2777
+
2778
+ # pkg:gem/railties#lib/rails/paths.rb:97
2779
+ def autoload_paths; end
2780
+
2781
+ # pkg:gem/railties#lib/rails/paths.rb:93
2782
+ def eager_load; end
2783
+
2784
+ # pkg:gem/railties#lib/rails/paths.rb:77
2785
+ def keys; end
2786
+
2787
+ # pkg:gem/railties#lib/rails/paths.rb:101
2788
+ def load_paths; end
2789
+
2790
+ # pkg:gem/railties#lib/rails/paths.rb:52
2791
+ def path; end
2792
+
2793
+ # pkg:gem/railties#lib/rails/paths.rb:52
2794
+ def path=(_arg0); end
2795
+
2796
+ # pkg:gem/railties#lib/rails/paths.rb:73
2797
+ def values; end
2798
+
2799
+ # pkg:gem/railties#lib/rails/paths.rb:81
2800
+ def values_at(*list); end
2801
+
2802
+ private
2803
+
2804
+ # pkg:gem/railties#lib/rails/paths.rb:106
2805
+ def filter_by(&block); end
2806
+ end
2807
+
2808
+ # pkg:gem/railties#lib/rails/pwa_controller.rb:5
2809
+ class Rails::PwaController < ::Rails::ApplicationController
2810
+ # pkg:gem/railties#lib/rails/pwa_controller.rb:12
2811
+ def manifest; end
2812
+
2813
+ # pkg:gem/railties#lib/rails/pwa_controller.rb:8
2814
+ def service_worker; end
2815
+
2816
+ private
2817
+
2818
+ # pkg:gem/railties#lib/rails/pwa_controller.rb:5
2819
+ def _layout(lookup_context, formats, keys); end
2820
+
2821
+ class << self
2822
+ private
2823
+
2824
+ # pkg:gem/railties#lib/rails/pwa_controller.rb:6
2825
+ def __class_attr___callbacks; end
2826
+
2827
+ # pkg:gem/railties#lib/rails/pwa_controller.rb:6
2828
+ def __class_attr___callbacks=(new_value); end
2829
+
2830
+ # pkg:gem/railties#lib/rails/pwa_controller.rb:5
2831
+ def __class_attr_config; end
2832
+
2833
+ # pkg:gem/railties#lib/rails/pwa_controller.rb:5
2834
+ def __class_attr_config=(new_value); end
2835
+
2836
+ # pkg:gem/railties#lib/rails/pwa_controller.rb:5
2837
+ def __class_attr_middleware_stack; end
2838
+
2839
+ # pkg:gem/railties#lib/rails/pwa_controller.rb:5
2840
+ def __class_attr_middleware_stack=(new_value); end
2841
+ end
2842
+ end
2843
+
2844
+ # pkg:gem/railties#lib/rails/rack.rb:4
2845
+ module Rails::Rack; end
2846
+
2847
+ # Sets log tags, logs the request, calls the app, and flushes the logs.
2848
+ #
2849
+ # Log tags (+taggers+) can be an Array containing: methods that the +request+
2850
+ # object responds to, objects that respond to +to_s+ or Proc objects that accept
2851
+ # an instance of the +request+ object.
2852
+ #
2853
+ # pkg:gem/railties#lib/rails/rack/logger.rb:14
2854
+ class Rails::Rack::Logger < ::ActiveSupport::LogSubscriber
2855
+ # pkg:gem/railties#lib/rails/rack/logger.rb:15
2856
+ def initialize(app, taggers = T.unsafe(nil)); end
2857
+
2858
+ # pkg:gem/railties#lib/rails/rack/logger.rb:20
2859
+ def call(env); end
2860
+
2861
+ private
2862
+
2863
+ # pkg:gem/railties#lib/rails/rack/logger.rb:33
2864
+ def call_app(request, env); end
2865
+
2866
+ # pkg:gem/railties#lib/rails/rack/logger.rb:64
2867
+ def compute_tags(request); end
2868
+
2869
+ # pkg:gem/railties#lib/rails/rack/logger.rb:81
2870
+ def finish_request_instrumentation(handle, logger_tag_pop_count); end
2871
+
2872
+ # pkg:gem/railties#lib/rails/rack/logger.rb:77
2873
+ def logger; end
2874
+
2875
+ # Started GET "/session/new" for 127.0.0.1 at 2012-09-26 14:51:42 -0700
2876
+ #
2877
+ # pkg:gem/railties#lib/rails/rack/logger.rb:56
2878
+ def started_request_message(request); end
2879
+ end
2880
+
2881
+ # Allows you to silence requests made to a specific path.
2882
+ # This is useful for preventing recurring requests like health checks from clogging the logging.
2883
+ # This middleware is used to do just that against the path /up in production by default.
2884
+ #
2885
+ # Examples:
2886
+ #
2887
+ # config.middleware.insert_before \
2888
+ # Rails::Rack::Logger, Rails::Rack::SilenceRequest, path: "/up"
2889
+ #
2890
+ # config.middleware.insert_before \
2891
+ # Rails::Rack::Logger, Rails::Rack::SilenceRequest, path: /test$/
2892
+ #
2893
+ # This middleware can also be configured using `config.silence_healthcheck_path = "/up"` in Rails.
2894
+ #
2895
+ # pkg:gem/railties#lib/rails/rack/silence_request.rb:22
2896
+ class Rails::Rack::SilenceRequest
2897
+ # pkg:gem/railties#lib/rails/rack/silence_request.rb:23
2898
+ def initialize(app, path:); end
2899
+
2900
+ # pkg:gem/railties#lib/rails/rack/silence_request.rb:27
2901
+ def call(env); end
2902
+ end
2903
+
2904
+ # +Rails::Railtie+ is the core of the \Rails framework and provides
2905
+ # several hooks to extend \Rails and/or modify the initialization process.
2906
+ #
2907
+ # Every major component of \Rails (Action Mailer, Action Controller, Active
2908
+ # Record, etc.) implements a railtie. Each of them is responsible for their
2909
+ # own initialization. This makes \Rails itself absent of any component hooks,
2910
+ # allowing other components to be used in place of any of the \Rails defaults.
2911
+ #
2912
+ # Developing a \Rails extension does _not_ require implementing a railtie, but
2913
+ # if you need to interact with the \Rails framework during or after boot, then
2914
+ # a railtie is needed.
2915
+ #
2916
+ # For example, an extension doing any of the following would need a railtie:
2917
+ #
2918
+ # * creating initializers
2919
+ # * configuring a \Rails framework for the application, like setting a generator
2920
+ # * adding <tt>config.*</tt> keys to the environment
2921
+ # * setting up a subscriber with ActiveSupport::Notifications
2922
+ # * adding Rake tasks
2923
+ #
2924
+ # == Creating a Railtie
2925
+ #
2926
+ # To extend \Rails using a railtie, create a subclass of +Rails::Railtie+.
2927
+ # This class must be loaded during the \Rails boot process, and is conventionally
2928
+ # called +MyNamespace::Railtie+.
2929
+ #
2930
+ # The following example demonstrates an extension which can be used with or
2931
+ # without \Rails.
2932
+ #
2933
+ # # lib/my_gem/railtie.rb
2934
+ # module MyGem
2935
+ # class Railtie < Rails::Railtie
2936
+ # end
2937
+ # end
2938
+ #
2939
+ # # lib/my_gem.rb
2940
+ # require "my_gem/railtie" if defined?(Rails::Railtie)
2941
+ #
2942
+ # == Initializers
2943
+ #
2944
+ # To add an initialization step to the \Rails boot process from your railtie, just
2945
+ # define the initialization code with the +initializer+ macro:
2946
+ #
2947
+ # class MyGem::Railtie < Rails::Railtie
2948
+ # initializer "my_gem.configure_rails_initialization" do
2949
+ # # some initialization behavior
2950
+ # end
2951
+ # end
2952
+ #
2953
+ # If specified, the block can also receive the application object, in case you
2954
+ # need to access some application-specific configuration, like middleware:
2955
+ #
2956
+ # class MyGem::Railtie < Rails::Railtie
2957
+ # initializer "my_gem.configure_rails_initialization" do |app|
2958
+ # app.middleware.use MyGem::Middleware
2959
+ # end
2960
+ # end
2961
+ #
2962
+ # Finally, you can also pass <tt>:before</tt> and <tt>:after</tt> as options to
2963
+ # +initializer+, in case you want to couple it with a specific step in the
2964
+ # initialization process.
2965
+ #
2966
+ # == Configuration
2967
+ #
2968
+ # Railties can access a config object which contains configuration shared by all
2969
+ # railties and the application:
2970
+ #
2971
+ # class MyGem::Railtie < Rails::Railtie
2972
+ # # Customize the ORM
2973
+ # config.app_generators.orm :my_gem_orm
2974
+ #
2975
+ # # Add a to_prepare block which is executed once in production
2976
+ # # and before each request in development.
2977
+ # config.to_prepare do
2978
+ # MyGem.setup!
2979
+ # end
2980
+ # end
2981
+ #
2982
+ # == Loading Rake Tasks and Generators
2983
+ #
2984
+ # If your railtie has Rake tasks, you can tell \Rails to load them through the method
2985
+ # +rake_tasks+:
2986
+ #
2987
+ # class MyGem::Railtie < Rails::Railtie
2988
+ # rake_tasks do
2989
+ # load "path/to/my_gem.tasks"
2990
+ # end
2991
+ # end
2992
+ #
2993
+ # By default, \Rails loads generators from your load path. However, if you want to place
2994
+ # your generators at a different location, you can specify in your railtie a block which
2995
+ # will load them during normal generators lookup:
2996
+ #
2997
+ # class MyGem::Railtie < Rails::Railtie
2998
+ # generators do
2999
+ # require "path/to/my_gem_generator"
3000
+ # end
3001
+ # end
3002
+ #
3003
+ # Since filenames on the load path are shared across gems, be sure that files you load
3004
+ # through a railtie have unique names.
3005
+ #
3006
+ # == Run another program when the \Rails server starts
3007
+ #
3008
+ # In development, it's very usual to have to run another process next to the \Rails Server. In example
3009
+ # you might want to start the Webpack or React server. Or maybe you need to run your job scheduler process
3010
+ # like Sidekiq. This is usually done by opening a new shell and running the program from here.
3011
+ #
3012
+ # \Rails allow you to specify a +server+ block which will get called when a \Rails server starts.
3013
+ # This way, your users don't need to remember to have to open a new shell and run another program, making
3014
+ # this less confusing for everyone.
3015
+ # It can be used like this:
3016
+ #
3017
+ # class MyGem::Railtie < Rails::Railtie
3018
+ # server do
3019
+ # WebpackServer.start
3020
+ # end
3021
+ # end
3022
+ #
3023
+ # == Application and Engine
3024
+ #
3025
+ # An engine is nothing more than a railtie with some initializers already set. And since
3026
+ # Rails::Application is an engine, the same configuration described here can be
3027
+ # used in both.
3028
+ #
3029
+ # Be sure to look at the documentation of those specific classes for more information.
3030
+ #
3031
+ # pkg:gem/railties#lib/rails/railtie.rb:135
3032
+ class Rails::Railtie
3033
+ include ::Rails::Initializable
3034
+ extend ::ActiveSupport::DescendantsTracker
3035
+ extend ::Rails::Initializable::ClassMethods
3036
+
3037
+ # pkg:gem/railties#lib/rails/railtie.rb:244
3038
+ def initialize; end
3039
+
3040
+ # This is used to create the <tt>config</tt> object on Railties, an instance of
3041
+ # Railtie::Configuration, that is used by Railties and Application to store
3042
+ # related configuration.
3043
+ #
3044
+ # pkg:gem/railties#lib/rails/railtie.rb:261
3045
+ def config; end
3046
+
3047
+ # pkg:gem/railties#lib/rails/railtie.rb:254
3048
+ def configure(&block); end
3049
+
3050
+ # pkg:gem/railties#lib/rails/railtie.rb:250
3051
+ def inspect; end
3052
+
3053
+ # pkg:gem/railties#lib/rails/railtie.rb:242
3054
+ def railtie_name(*_arg0, **_arg1, &_arg2); end
3055
+
3056
+ # pkg:gem/railties#lib/rails/railtie.rb:265
3057
+ def railtie_namespace; end
3058
+
3059
+ protected
3060
+
3061
+ # pkg:gem/railties#lib/rails/railtie.rb:270
3062
+ def run_console_blocks(app); end
3063
+
3064
+ # pkg:gem/railties#lib/rails/railtie.rb:274
3065
+ def run_generators_blocks(app); end
3066
+
3067
+ # pkg:gem/railties#lib/rails/railtie.rb:278
3068
+ def run_runner_blocks(app); end
3069
+
3070
+ # pkg:gem/railties#lib/rails/railtie.rb:287
3071
+ def run_server_blocks(app); end
3072
+
3073
+ # pkg:gem/railties#lib/rails/railtie.rb:282
3074
+ def run_tasks_blocks(app); end
3075
+
3076
+ private
3077
+
3078
+ # run `&block` in every registered block in `#register_block_for`
3079
+ #
3080
+ # pkg:gem/railties#lib/rails/railtie.rb:293
3081
+ def each_registered_block(type, &block); end
3082
+
3083
+ class << self
3084
+ # pkg:gem/railties#lib/rails/railtie.rb:193
3085
+ def <=>(other); end
3086
+
3087
+ # pkg:gem/railties#lib/rails/railtie.rb:171
3088
+ def abstract_railtie?; end
3089
+
3090
+ # This is used to create the <tt>config</tt> object on Railties, an instance of
3091
+ # Railtie::Configuration, that is used by Railties and Application to store
3092
+ # related configuration.
3093
+ #
3094
+ # pkg:gem/railties#lib/rails/railtie.rb:145
3095
+ def config(*_arg0, **_arg1, &_arg2); end
3096
+
3097
+ # Allows you to configure the railtie. This is the same method seen in
3098
+ # Railtie::Configurable, but this module is no longer required for all
3099
+ # subclasses of Railtie so we provide the class method here.
3100
+ #
3101
+ # pkg:gem/railties#lib/rails/railtie.rb:189
3102
+ def configure(&block); end
3103
+
3104
+ # pkg:gem/railties#lib/rails/railtie.rb:155
3105
+ def console(&blk); end
3106
+
3107
+ # pkg:gem/railties#lib/rails/railtie.rb:163
3108
+ def generators(&blk); end
3109
+
3110
+ # pkg:gem/railties#lib/rails/railtie.rb:197
3111
+ def inherited(subclass); end
3112
+
3113
+ # Since Rails::Railtie cannot be instantiated, any methods that call
3114
+ # +instance+ are intended to be called only on subclasses of a Railtie.
3115
+ #
3116
+ # pkg:gem/railties#lib/rails/railtie.rb:182
3117
+ def instance; end
3118
+
3119
+ # pkg:gem/railties#lib/rails/railtie.rb:175
3120
+ def railtie_name(name = T.unsafe(nil)); end
3121
+
3122
+ # pkg:gem/railties#lib/rails/railtie.rb:151
3123
+ def rake_tasks(&blk); end
3124
+
3125
+ # pkg:gem/railties#lib/rails/railtie.rb:159
3126
+ def runner(&blk); end
3127
+
3128
+ # pkg:gem/railties#lib/rails/railtie.rb:167
3129
+ def server(&blk); end
3130
+
3131
+ # pkg:gem/railties#lib/rails/railtie.rb:147
3132
+ def subclasses; end
3133
+
3134
+ protected
3135
+
3136
+ # pkg:gem/railties#lib/rails/railtie.rb:205
3137
+ def increment_load_index; end
3138
+
3139
+ # pkg:gem/railties#lib/rails/railtie.rb:203
3140
+ def load_index; end
3141
+
3142
+ private
3143
+
3144
+ # pkg:gem/railties#lib/rails/railtie.rb:211
3145
+ def generate_railtie_name(string); end
3146
+
3147
+ # If the class method does not have a method, then send the method call
3148
+ # to the Railtie instance.
3149
+ #
3150
+ # pkg:gem/railties#lib/rails/railtie.rb:223
3151
+ def method_missing(name, *_arg1, **_arg2, &_arg3); end
3152
+
3153
+ # pkg:gem/railties#lib/rails/railtie.rb:144
3154
+ def new(*_arg0); end
3155
+
3156
+ # receives an instance variable identifier, set the variable value if is
3157
+ # blank and append given block to value, which will be used later in
3158
+ # `#each_registered_block(type, &block)`
3159
+ #
3160
+ # pkg:gem/railties#lib/rails/railtie.rb:234
3161
+ def register_block_for(type, &blk); end
3162
+
3163
+ # pkg:gem/railties#lib/rails/railtie.rb:215
3164
+ def respond_to_missing?(name, _); end
3165
+ end
3166
+ end
3167
+
3168
+ # pkg:gem/railties#lib/rails/railtie.rb:141
3169
+ Rails::Railtie::ABSTRACT_RAILTIES = T.let(T.unsafe(nil), Array)
3170
+
3171
+ # pkg:gem/railties#lib/rails/railtie/configuration.rb:7
3172
+ class Rails::Railtie::Configuration
3173
+ # pkg:gem/railties#lib/rails/railtie/configuration.rb:8
3174
+ def initialize; end
3175
+
3176
+ # Last configurable block to run. Called after frameworks initialize.
3177
+ #
3178
+ # pkg:gem/railties#lib/rails/railtie/configuration.rb:70
3179
+ def after_initialize(&block); end
3180
+
3181
+ # Called after application routes have been loaded.
3182
+ #
3183
+ # pkg:gem/railties#lib/rails/railtie/configuration.rb:75
3184
+ def after_routes_loaded(&block); end
3185
+
3186
+ # This allows you to modify application's generators from Railties.
3187
+ #
3188
+ # Values set on app_generators will become defaults for application, unless
3189
+ # application overwrites them.
3190
+ #
3191
+ # pkg:gem/railties#lib/rails/railtie/configuration.rb:47
3192
+ def app_generators; end
3193
+
3194
+ # This allows you to modify the application's middlewares from Engines.
3195
+ #
3196
+ # All operations you run on the app_middleware will be replayed on the
3197
+ # application once it is defined and the default_middlewares are
3198
+ # created
3199
+ #
3200
+ # pkg:gem/railties#lib/rails/railtie/configuration.rb:39
3201
+ def app_middleware; end
3202
+
3203
+ # First configurable block to run. Called before any initializers are run.
3204
+ #
3205
+ # pkg:gem/railties#lib/rails/railtie/configuration.rb:54
3206
+ def before_configuration(&block); end
3207
+
3208
+ # Third configurable block to run. Does not run if +config.eager_load+
3209
+ # set to false.
3210
+ #
3211
+ # pkg:gem/railties#lib/rails/railtie/configuration.rb:60
3212
+ def before_eager_load(&block); end
3213
+
3214
+ # Second configurable block to run. Called before frameworks initialize.
3215
+ #
3216
+ # pkg:gem/railties#lib/rails/railtie/configuration.rb:65
3217
+ def before_initialize(&block); end
3218
+
3219
+ # All namespaces that are eager loaded
3220
+ #
3221
+ # pkg:gem/railties#lib/rails/railtie/configuration.rb:18
3222
+ def eager_load_namespaces; end
3223
+
3224
+ # pkg:gem/railties#lib/rails/railtie/configuration.rb:90
3225
+ def respond_to?(name, include_private = T.unsafe(nil)); end
3226
+
3227
+ # Defines generic callbacks to run before #after_initialize. Useful for
3228
+ # Rails::Railtie subclasses.
3229
+ #
3230
+ # pkg:gem/railties#lib/rails/railtie/configuration.rb:86
3231
+ def to_prepare(&blk); end
3232
+
3233
+ # Array of callbacks defined by #to_prepare.
3234
+ #
3235
+ # pkg:gem/railties#lib/rails/railtie/configuration.rb:80
3236
+ def to_prepare_blocks; end
3237
+
3238
+ # Add directories that should be watched for change.
3239
+ # The key of the hashes should be directories and the values should
3240
+ # be an array of extensions to match in each directory.
3241
+ #
3242
+ # pkg:gem/railties#lib/rails/railtie/configuration.rb:30
3243
+ def watchable_dirs; end
3244
+
3245
+ # Add files that should be watched for change.
3246
+ #
3247
+ # pkg:gem/railties#lib/rails/railtie/configuration.rb:23
3248
+ def watchable_files; end
3249
+
3250
+ private
3251
+
3252
+ # pkg:gem/railties#lib/rails/railtie/configuration.rb:95
3253
+ def actual_method?(key); end
3254
+
3255
+ # pkg:gem/railties#lib/rails/railtie/configuration.rb:99
3256
+ def method_missing(name, *args, &blk); end
3257
+
3258
+ class << self
3259
+ # Expose the eager_load_namespaces at "module" level for convenience.
3260
+ #
3261
+ # pkg:gem/railties#lib/rails/railtie/configuration.rb:13
3262
+ def eager_load_namespaces; end
3263
+ end
3264
+ end
3265
+
3266
+ # Implements the logic behind +Rails::Command::NotesCommand+. See <tt>rails notes --help</tt> for usage information.
3267
+ #
3268
+ # Annotation objects are triplets <tt>:line</tt>, <tt>:tag</tt>, <tt>:text</tt> that
3269
+ # represent the line where the annotation lives, its tag, and its text. Note
3270
+ # the filename is not stored.
3271
+ #
3272
+ # Annotations are looked for in comments and modulus whitespace they have to
3273
+ # start with the tag optionally followed by a colon. Everything up to the end
3274
+ # of the line (or closing ERB comment tag) is considered to be their text.
3275
+ #
3276
+ # pkg:gem/railties#lib/rails/source_annotation_extractor.rb:21
3277
+ class Rails::SourceAnnotationExtractor
3278
+ # pkg:gem/railties#lib/rails/source_annotation_extractor.rb:158
3279
+ def initialize(tag); end
3280
+
3281
+ # Prints the mapping from filenames to annotations in +results+ ordered by filename.
3282
+ # The +options+ hash is passed to each annotation's +to_s+.
3283
+ #
3284
+ # pkg:gem/railties#lib/rails/source_annotation_extractor.rb:207
3285
+ def display(results, options = T.unsafe(nil)); end
3286
+
3287
+ # Returns a hash that maps filenames under +dirs+ (recursively) to arrays
3288
+ # with their annotations.
3289
+ #
3290
+ # pkg:gem/railties#lib/rails/source_annotation_extractor.rb:164
3291
+ def find(dirs); end
3292
+
3293
+ # Returns a hash that maps filenames under +dir+ (recursively) to arrays
3294
+ # with their annotations. Files with extensions registered in
3295
+ # <tt>Rails::SourceAnnotationExtractor::Annotation.extensions</tt> are
3296
+ # taken into account. Only files with annotations are included.
3297
+ #
3298
+ # pkg:gem/railties#lib/rails/source_annotation_extractor.rb:172
3299
+ def find_in(dir); end
3300
+
3301
+ # pkg:gem/railties#lib/rails/source_annotation_extractor.rb:156
3302
+ def tag; end
3303
+
3304
+ class << self
3305
+ # Prints all annotations with tag +tag+ under the root directories +app+,
3306
+ # +config+, +db+, +lib+, and +test+ (recursively).
3307
+ #
3308
+ # If +tag+ is <tt>nil</tt>, annotations with either default or registered tags are printed.
3309
+ #
3310
+ # Specific directories can be explicitly set using the <tt>:dirs</tt> key in +options+.
3311
+ #
3312
+ # Rails::SourceAnnotationExtractor.enumerate 'TODO|FIXME', dirs: %w(app lib), tag: true
3313
+ #
3314
+ # If +options+ has a <tt>:tag</tt> flag, it will be passed to each annotation's +to_s+.
3315
+ #
3316
+ # See SourceAnnotationExtractor#find_in for a list of file extensions that will be taken into account.
3317
+ #
3318
+ # This class method is the single entry point for the <tt>rails notes</tt> command.
3319
+ #
3320
+ # pkg:gem/railties#lib/rails/source_annotation_extractor.rb:149
3321
+ def enumerate(tag = T.unsafe(nil), options = T.unsafe(nil)); end
3322
+ end
3323
+ end
3324
+
3325
+ # pkg:gem/railties#lib/rails/source_annotation_extractor.rb:71
3326
+ class Rails::SourceAnnotationExtractor::Annotation < ::Struct
3327
+ # Returns a representation of the annotation that looks like this:
3328
+ #
3329
+ # [126] [TODO] This algorithm is simple and clearly correct, make it faster.
3330
+ #
3331
+ # If +options+ has a flag <tt>:tag</tt> the tag is shown as in the example above.
3332
+ # Otherwise the string contains just line and text.
3333
+ #
3334
+ # pkg:gem/railties#lib/rails/source_annotation_extractor.rb:128
3335
+ def to_s(options = T.unsafe(nil)); end
3336
+
3337
+ class << self
3338
+ # pkg:gem/railties#lib/rails/source_annotation_extractor.rb:72
3339
+ def directories; end
3340
+
3341
+ # pkg:gem/railties#lib/rails/source_annotation_extractor.rb:92
3342
+ def extensions; end
3343
+
3344
+ # Registers additional directories to be included
3345
+ # Rails::SourceAnnotationExtractor::Annotation.register_directories("spec", "another")
3346
+ #
3347
+ # pkg:gem/railties#lib/rails/source_annotation_extractor.rb:78
3348
+ def register_directories(*dirs); end
3349
+
3350
+ # Registers new Annotations File Extensions
3351
+ # Rails::SourceAnnotationExtractor::Annotation.register_extensions("css", "scss", "sass", "less", "js") { |tag| /\/\/\s*(#{tag}):?\s*(.*)$/ }
3352
+ #
3353
+ # pkg:gem/railties#lib/rails/source_annotation_extractor.rb:98
3354
+ def register_extensions(*exts, &block); end
3355
+
3356
+ # Registers additional tags
3357
+ # Rails::SourceAnnotationExtractor::Annotation.register_tags("TESTME", "DEPRECATEME")
3358
+ #
3359
+ # pkg:gem/railties#lib/rails/source_annotation_extractor.rb:88
3360
+ def register_tags(*additional_tags); end
3361
+
3362
+ # pkg:gem/railties#lib/rails/source_annotation_extractor.rb:82
3363
+ def tags; end
3364
+ end
3365
+ end
3366
+
3367
+ # Wraps a regular expression that will be tested against each of the source
3368
+ # file's comments.
3369
+ #
3370
+ # pkg:gem/railties#lib/rails/source_annotation_extractor.rb:24
3371
+ class Rails::SourceAnnotationExtractor::ParserExtractor < ::Struct
3372
+ # pkg:gem/railties#lib/rails/source_annotation_extractor.rb:26
3373
+ def annotations(file); end
3374
+ end
3375
+
3376
+ # Wraps a regular expression that will iterate through a file's lines and
3377
+ # test each one for the given pattern.
3378
+ #
3379
+ # pkg:gem/railties#lib/rails/source_annotation_extractor.rb:59
3380
+ class Rails::SourceAnnotationExtractor::PatternExtractor < ::Struct
3381
+ # pkg:gem/railties#lib/rails/source_annotation_extractor.rb:60
3382
+ def annotations(file); end
3383
+ end
3384
+
3385
+ # pkg:gem/railties#lib/rails/test_unit/reporter.rb:6
3386
+ class Rails::TestUnitReporter < ::Minitest::StatisticsReporter
3387
+ # pkg:gem/railties#lib/rails/test_unit/reporter.rb:51
3388
+ def aggregated_results; end
3389
+
3390
+ # pkg:gem/railties#lib/rails/test_unit/reporter.rb:55
3391
+ def filtered_results; end
3392
+
3393
+ # pkg:gem/railties#lib/rails/test_unit/reporter.rb:84
3394
+ def format_rerun_snippet(result); end
3395
+
3396
+ # pkg:gem/railties#lib/rails/test_unit/reporter.rb:13
3397
+ def prerecord(test_class, test_name); end
3398
+
3399
+ # pkg:gem/railties#lib/rails/test_unit/reporter.rb:20
3400
+ def record(result); end
3401
+
3402
+ # pkg:gem/railties#lib/rails/test_unit/reporter.rb:63
3403
+ def relative_path_for(file); end
3404
+
3405
+ # pkg:gem/railties#lib/rails/test_unit/reporter.rb:43
3406
+ def report; end
3407
+
3408
+ private
3409
+
3410
+ # pkg:gem/railties#lib/rails/test_unit/reporter.rb:94
3411
+ def app_root; end
3412
+
3413
+ # pkg:gem/railties#lib/rails/test_unit/reporter.rb:119
3414
+ def color_output(string, by:); end
3415
+
3416
+ # pkg:gem/railties#lib/rails/test_unit/reporter.rb:107
3417
+ def colored_output?; end
3418
+
3419
+ # pkg:gem/railties#lib/rails/test_unit/reporter.rb:76
3420
+ def fail_fast?; end
3421
+
3422
+ # pkg:gem/railties#lib/rails/test_unit/reporter.rb:80
3423
+ def format_line(result); end
3424
+
3425
+ # pkg:gem/railties#lib/rails/test_unit/reporter.rb:72
3426
+ def output_inline?; end
3427
+
3428
+ class << self
3429
+ # pkg:gem/railties#lib/rails/test_unit/reporter.rb:8
3430
+ def app_root; end
3431
+
3432
+ # pkg:gem/railties#lib/rails/test_unit/reporter.rb:8
3433
+ def app_root=(_arg0); end
3434
+
3435
+ # pkg:gem/railties#lib/rails/test_unit/reporter.rb:11
3436
+ def executable; end
3437
+
3438
+ # pkg:gem/railties#lib/rails/test_unit/reporter.rb:11
3439
+ def executable=(_arg0); end
3440
+ end
3441
+ end
3442
+
3443
+ # pkg:gem/railties#lib/rails/test_unit/reporter.rb:112
3444
+ Rails::TestUnitReporter::COLOR_BY_RESULT_CODE = T.let(T.unsafe(nil), Hash)
3445
+
3446
+ # pkg:gem/railties#lib/rails/gem_version.rb:9
3447
+ module Rails::VERSION; end
3448
+
3449
+ # pkg:gem/railties#lib/rails/gem_version.rb:10
3450
+ Rails::VERSION::MAJOR = T.let(T.unsafe(nil), Integer)
3451
+
3452
+ # pkg:gem/railties#lib/rails/gem_version.rb:11
3453
+ Rails::VERSION::MINOR = T.let(T.unsafe(nil), Integer)
3454
+
3455
+ # pkg:gem/railties#lib/rails/gem_version.rb:13
3456
+ Rails::VERSION::PRE = T.let(T.unsafe(nil), T.untyped)
3457
+
3458
+ # pkg:gem/railties#lib/rails/gem_version.rb:15
3459
+ Rails::VERSION::STRING = T.let(T.unsafe(nil), String)
3460
+
3461
+ # pkg:gem/railties#lib/rails/gem_version.rb:12
3462
+ Rails::VERSION::TINY = T.let(T.unsafe(nil), Integer)
3463
+
3464
+ # pkg:gem/railties#lib/rails/welcome_controller.rb:5
3465
+ class Rails::WelcomeController < ::Rails::ApplicationController
3466
+ # pkg:gem/railties#lib/rails/welcome_controller.rb:9
3467
+ def index; end
3468
+
3469
+ private
3470
+
3471
+ # pkg:gem/railties#lib/rails/welcome_controller.rb:5
3472
+ def _layout(lookup_context, formats, keys); end
3473
+
3474
+ class << self
3475
+ private
3476
+
3477
+ # pkg:gem/railties#lib/rails/welcome_controller.rb:6
3478
+ def __class_attr___callbacks; end
3479
+
3480
+ # pkg:gem/railties#lib/rails/welcome_controller.rb:6
3481
+ def __class_attr___callbacks=(new_value); end
3482
+
3483
+ # pkg:gem/railties#lib/rails/welcome_controller.rb:7
3484
+ def __class_attr__layout; end
3485
+
3486
+ # pkg:gem/railties#lib/rails/welcome_controller.rb:7
3487
+ def __class_attr__layout=(new_value); end
3488
+
3489
+ # pkg:gem/railties#lib/rails/welcome_controller.rb:7
3490
+ def __class_attr__layout_conditions; end
3491
+
3492
+ # pkg:gem/railties#lib/rails/welcome_controller.rb:7
3493
+ def __class_attr__layout_conditions=(new_value); end
3494
+
3495
+ # pkg:gem/railties#lib/rails/welcome_controller.rb:5
3496
+ def __class_attr_config; end
3497
+
3498
+ # pkg:gem/railties#lib/rails/welcome_controller.rb:5
3499
+ def __class_attr_config=(new_value); end
3500
+
3501
+ # pkg:gem/railties#lib/rails/welcome_controller.rb:5
3502
+ def __class_attr_middleware_stack; end
3503
+
3504
+ # pkg:gem/railties#lib/rails/welcome_controller.rb:5
3505
+ def __class_attr_middleware_stack=(new_value); end
3506
+ end
3507
+ end