packwerk 2.1.1 → 2.2.1

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