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