wal 0.0.1 → 0.0.3

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