rails_type_id 0.1.0

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