acts-as-messageable 0.5.0 → 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (214) hide show
  1. checksums.yaml +4 -4
  2. data/.github/dependabot.yml +8 -0
  3. data/.github/workflows/test.yml +152 -0
  4. data/.rubocop.yml +14 -1
  5. data/.rubocop_todo.yml +49 -7
  6. data/.ruby-version +1 -0
  7. data/Appraisals +11 -0
  8. data/Dockerfile +2 -1
  9. data/Gemfile +19 -13
  10. data/Gemfile.lock +186 -97
  11. data/README.md +2 -3
  12. data/Rakefile +6 -1
  13. data/VERSION +1 -1
  14. data/acts-as-messageable.gemspec +193 -40
  15. data/bin/tapioca +29 -0
  16. data/docker-compose.yml +82 -71
  17. data/gemfiles/rails_3.2.gemfile +14 -9
  18. data/gemfiles/rails_4.2.gemfile +14 -9
  19. data/gemfiles/rails_5.2.gemfile +14 -9
  20. data/gemfiles/rails_6.0.gemfile +14 -9
  21. data/gemfiles/rails_7.0.gemfile +29 -0
  22. data/gemfiles/rails_master.gemfile +15 -9
  23. data/lib/acts-as-messageable.rb +1 -0
  24. data/lib/acts_as_messageable/message.rb +62 -5
  25. data/lib/acts_as_messageable/model.rb +71 -20
  26. data/lib/acts_as_messageable/rails3.rb +27 -2
  27. data/lib/acts_as_messageable/rails4.rb +31 -4
  28. data/lib/acts_as_messageable/rails6.rb +34 -2
  29. data/lib/acts_as_messageable/railtie.rb +1 -0
  30. data/lib/acts_as_messageable/relation.rb +18 -2
  31. data/lib/acts_as_messageable/scopes.rb +11 -0
  32. data/lib/acts_as_messageable.rb +18 -0
  33. data/lib/generators/acts_as_messageable/migration/migration_generator.rb +4 -0
  34. data/lib/generators/acts_as_messageable/migration/templates/migration.rb +1 -0
  35. data/lib/generators/acts_as_messageable/migration/templates/migration_indexes.rb +1 -0
  36. data/lib/generators/acts_as_messageable/migration/templates/migration_opened_as_datetime.rb +1 -0
  37. data/lib/generators/acts_as_messageable/migration/templates/migration_permanent.rb +1 -0
  38. data/sorbet/config +4 -0
  39. data/sorbet/rbi/annotations/actionpack.rbi +428 -0
  40. data/sorbet/rbi/annotations/actionview.rbi +77 -0
  41. data/sorbet/rbi/annotations/activerecord.rbi +18 -0
  42. data/sorbet/rbi/annotations/activesupport.rbi +52 -0
  43. data/sorbet/rbi/annotations/faraday.rbi +17 -0
  44. data/sorbet/rbi/annotations/railties.rbi +58 -0
  45. data/sorbet/rbi/annotations/rainbow.rbi +269 -0
  46. data/sorbet/rbi/dsl/abstract_controller/caching/fragments.rbi +23 -0
  47. data/sorbet/rbi/dsl/abstract_controller/caching.rbi +30 -0
  48. data/sorbet/rbi/dsl/abstract_controller/callbacks.rbi +23 -0
  49. data/sorbet/rbi/dsl/abstract_controller/helpers.rbi +23 -0
  50. data/sorbet/rbi/dsl/abstract_controller/rendering.rbi +9 -0
  51. data/sorbet/rbi/dsl/abstract_controller/url_for.rbi +23 -0
  52. data/sorbet/rbi/dsl/action_controller/caching.rbi +29 -0
  53. data/sorbet/rbi/dsl/action_controller/conditional_get.rbi +23 -0
  54. data/sorbet/rbi/dsl/action_controller/content_security_policy.rbi +31 -0
  55. data/sorbet/rbi/dsl/action_controller/data_streaming.rbi +9 -0
  56. data/sorbet/rbi/dsl/action_controller/etag_with_flash.rbi +24 -0
  57. data/sorbet/rbi/dsl/action_controller/etag_with_template_digest.rbi +30 -0
  58. data/sorbet/rbi/dsl/action_controller/flash.rbi +19 -0
  59. data/sorbet/rbi/dsl/action_controller/form_builder.rbi +19 -0
  60. data/sorbet/rbi/dsl/action_controller/helpers.rbi +36 -0
  61. data/sorbet/rbi/dsl/action_controller/params_wrapper.rbi +23 -0
  62. data/sorbet/rbi/dsl/action_controller/redirecting.rbi +24 -0
  63. data/sorbet/rbi/dsl/action_controller/renderers/all.rbi +24 -0
  64. data/sorbet/rbi/dsl/action_controller/renderers.rbi +23 -0
  65. data/sorbet/rbi/dsl/action_controller/request_forgery_protection.rbi +31 -0
  66. data/sorbet/rbi/dsl/action_controller/rescue.rbi +24 -0
  67. data/sorbet/rbi/dsl/action_controller/test_case/behavior.rbi +24 -0
  68. data/sorbet/rbi/dsl/action_controller/url_for.rbi +24 -0
  69. data/sorbet/rbi/dsl/action_dispatch/routing/url_for.rbi +23 -0
  70. data/sorbet/rbi/dsl/action_view/helpers/form_helper.rbi +10 -0
  71. data/sorbet/rbi/dsl/action_view/helpers/form_tag_helper.rbi +10 -0
  72. data/sorbet/rbi/dsl/action_view/helpers/text_helper.rbi +9 -0
  73. data/sorbet/rbi/dsl/action_view/helpers.rbi +10 -0
  74. data/sorbet/rbi/dsl/action_view/layouts.rbi +24 -0
  75. data/sorbet/rbi/dsl/action_view/rendering.rbi +9 -0
  76. data/sorbet/rbi/dsl/active_model/attribute_methods.rbi +27 -0
  77. data/sorbet/rbi/dsl/active_model/attributes.rbi +34 -0
  78. data/sorbet/rbi/dsl/active_model/dirty.rbi +28 -0
  79. data/sorbet/rbi/dsl/active_model/serializers/json.rbi +22 -0
  80. data/sorbet/rbi/dsl/active_model/validations/callbacks.rbi +22 -0
  81. data/sorbet/rbi/dsl/active_model/validations.rbi +27 -0
  82. data/sorbet/rbi/dsl/active_record/attribute_methods/dirty.rbi +38 -0
  83. data/sorbet/rbi/dsl/active_record/attribute_methods/time_zone_conversion.rbi +32 -0
  84. data/sorbet/rbi/dsl/active_record/attribute_methods.rbi +53 -0
  85. data/sorbet/rbi/dsl/active_record/attributes.rbi +19 -0
  86. data/sorbet/rbi/dsl/active_record/callbacks.rbi +22 -0
  87. data/sorbet/rbi/dsl/active_record/core.rbi +55 -0
  88. data/sorbet/rbi/dsl/active_record/encryption/encryptable_record.rbi +23 -0
  89. data/sorbet/rbi/dsl/active_record/inheritance.rbi +27 -0
  90. data/sorbet/rbi/dsl/active_record/integration.rbi +32 -0
  91. data/sorbet/rbi/dsl/active_record/locking/optimistic.rbi +22 -0
  92. data/sorbet/rbi/dsl/active_record/model_schema.rbi +52 -0
  93. data/sorbet/rbi/dsl/active_record/nested_attributes.rbi +22 -0
  94. data/sorbet/rbi/dsl/active_record/readonly_attributes.rbi +19 -0
  95. data/sorbet/rbi/dsl/active_record/reflection.rbi +32 -0
  96. data/sorbet/rbi/dsl/active_record/scoping/default.rbi +23 -0
  97. data/sorbet/rbi/dsl/active_record/scoping.rbi +23 -0
  98. data/sorbet/rbi/dsl/active_record/serialization.rbi +22 -0
  99. data/sorbet/rbi/dsl/active_record/signed_id.rbi +22 -0
  100. data/sorbet/rbi/dsl/active_record/test_fixtures.rbi +58 -0
  101. data/sorbet/rbi/dsl/active_record/timestamp.rbi +23 -0
  102. data/sorbet/rbi/dsl/active_record/validations.rbi +28 -0
  103. data/sorbet/rbi/dsl/active_support/actionable_error.rbi +23 -0
  104. data/sorbet/rbi/dsl/active_support/callbacks.rbi +22 -0
  105. data/sorbet/rbi/dsl/active_support/rescuable.rbi +23 -0
  106. data/sorbet/rbi/dsl/active_support/testing/file_fixtures.rbi +22 -0
  107. data/sorbet/rbi/gems/actionpack@7.0.4.3.rbi +19265 -0
  108. data/sorbet/rbi/gems/actionview@7.0.4.3.rbi +15482 -0
  109. data/sorbet/rbi/gems/activemodel@7.0.4.3.rbi +6025 -0
  110. data/sorbet/rbi/gems/activerecord@7.0.4.3.rbi +37852 -0
  111. data/sorbet/rbi/gems/activesupport@7.0.4.3.rbi +18788 -0
  112. data/sorbet/rbi/gems/addressable@2.4.0.rbi +8 -0
  113. data/sorbet/rbi/gems/appraisal@2.4.1.rbi +584 -0
  114. data/sorbet/rbi/gems/ast@2.4.2.rbi +584 -0
  115. data/sorbet/rbi/gems/builder@3.2.4.rbi +8 -0
  116. data/sorbet/rbi/gems/coderay@1.1.3.rbi +3426 -0
  117. data/sorbet/rbi/gems/commander@4.6.0.rbi +8 -0
  118. data/sorbet/rbi/gems/concurrent-ruby@1.2.2.rbi +11545 -0
  119. data/sorbet/rbi/gems/coveralls_reborn@0.27.0.rbi +8 -0
  120. data/sorbet/rbi/gems/crass@1.0.6.rbi +622 -0
  121. data/sorbet/rbi/gems/descendants_tracker@0.0.4.rbi +8 -0
  122. data/sorbet/rbi/gems/diff-lcs@1.5.0.rbi +1079 -0
  123. data/sorbet/rbi/gems/docile@1.4.0.rbi +8 -0
  124. data/sorbet/rbi/gems/erubi@1.12.0.rbi +146 -0
  125. data/sorbet/rbi/gems/faraday@0.9.2.rbi +964 -0
  126. data/sorbet/rbi/gems/git@1.11.0.rbi +2700 -0
  127. data/sorbet/rbi/gems/github_api@0.16.0.rbi +8 -0
  128. data/sorbet/rbi/gems/hashie@5.0.0.rbi +8 -0
  129. data/sorbet/rbi/gems/highline@2.0.3.rbi +8 -0
  130. data/sorbet/rbi/gems/i18n@1.12.0.rbi +2296 -0
  131. data/sorbet/rbi/gems/jeweler@2.3.9.rbi +1591 -0
  132. data/sorbet/rbi/gems/json@2.6.3.rbi +1541 -0
  133. data/sorbet/rbi/gems/jwt@2.5.0.rbi +8 -0
  134. data/sorbet/rbi/gems/loofah@2.19.1.rbi +904 -0
  135. data/sorbet/rbi/gems/method_source@1.0.0.rbi +272 -0
  136. data/sorbet/rbi/gems/mime-types@2.99.3.rbi +8 -0
  137. data/sorbet/rbi/gems/minitest@5.18.0.rbi +1491 -0
  138. data/sorbet/rbi/gems/multi_json@1.15.0.rbi +8 -0
  139. data/sorbet/rbi/gems/multi_xml@0.6.0.rbi +8 -0
  140. data/sorbet/rbi/gems/multipart-post@2.2.3.rbi +8 -0
  141. data/sorbet/rbi/gems/netrc@0.11.0.rbi +158 -0
  142. data/sorbet/rbi/gems/nokogiri@1.14.2.rbi +7244 -0
  143. data/sorbet/rbi/gems/oauth2@1.4.8.rbi +8 -0
  144. data/sorbet/rbi/gems/parallel@1.22.1.rbi +277 -0
  145. data/sorbet/rbi/gems/pg@1.4.6.rbi +2574 -0
  146. data/sorbet/rbi/gems/polyfill@1.9.0.rbi +8 -0
  147. data/sorbet/rbi/gems/pry@0.14.2.rbi +10081 -0
  148. data/sorbet/rbi/gems/psych@4.0.6.rbi +1819 -0
  149. data/sorbet/rbi/gems/racc@1.6.2.rbi +155 -0
  150. data/sorbet/rbi/gems/rack-test@2.0.2.rbi +943 -0
  151. data/sorbet/rbi/gems/rack@2.2.6.4.rbi +5659 -0
  152. data/sorbet/rbi/gems/rails-dom-testing@2.0.3.rbi +455 -0
  153. data/sorbet/rbi/gems/rails-html-sanitizer@1.5.0.rbi +685 -0
  154. data/sorbet/rbi/gems/railties@7.0.4.3.rbi +4553 -0
  155. data/sorbet/rbi/gems/rainbow@3.1.1.rbi +8 -0
  156. data/sorbet/rbi/gems/rake@13.0.6.rbi +2959 -0
  157. data/sorbet/rbi/gems/rbi@0.0.16.rbi +3008 -0
  158. data/sorbet/rbi/gems/rbs@2.8.0.rbi +8 -0
  159. data/sorbet/rbi/gems/rchardet@1.8.0.rbi +1078 -0
  160. data/sorbet/rbi/gems/rdoc@6.5.0.rbi +12441 -0
  161. data/sorbet/rbi/gems/regexp_parser@2.7.0.rbi +8 -0
  162. data/sorbet/rbi/gems/rexml@3.2.5.rbi +8 -0
  163. data/sorbet/rbi/gems/rspec-core@3.12.0.rbi +10798 -0
  164. data/sorbet/rbi/gems/rspec-expectations@3.12.0.rbi +8090 -0
  165. data/sorbet/rbi/gems/rspec-mocks@3.12.0.rbi +5296 -0
  166. data/sorbet/rbi/gems/rspec-support@3.12.0.rbi +1617 -0
  167. data/sorbet/rbi/gems/rspec@3.12.0.rbi +88 -0
  168. data/sorbet/rbi/gems/ruby-progressbar@1.13.0.rbi +8 -0
  169. data/sorbet/rbi/gems/safe_type@1.1.1.rbi +8 -0
  170. data/sorbet/rbi/gems/semver2@3.4.2.rbi +8 -0
  171. data/sorbet/rbi/gems/simplecov-html@0.12.3.rbi +8 -0
  172. data/sorbet/rbi/gems/simplecov@0.22.0.rbi +8 -0
  173. data/sorbet/rbi/gems/simplecov_json_formatter@0.1.4.rbi +8 -0
  174. data/sorbet/rbi/gems/sorbet-coerce@0.7.0.rbi +8 -0
  175. data/sorbet/rbi/gems/stringio@3.0.2.rbi +8 -0
  176. data/sorbet/rbi/gems/sync@0.5.0.rbi +8 -0
  177. data/sorbet/rbi/gems/term-ansicolor@1.7.1.rbi +8 -0
  178. data/sorbet/rbi/gems/thor@1.2.1.rbi +3956 -0
  179. data/sorbet/rbi/gems/thread_safe@0.3.6.rbi +8 -0
  180. data/sorbet/rbi/gems/timecop@0.9.6.rbi +361 -0
  181. data/sorbet/rbi/gems/tins@1.32.1.rbi +8 -0
  182. data/sorbet/rbi/gems/tzinfo@2.0.6.rbi +5917 -0
  183. data/sorbet/rbi/gems/unicode-display_width@2.4.2.rbi +8 -0
  184. data/sorbet/rbi/gems/unparser@0.6.7.rbi +4515 -0
  185. data/sorbet/rbi/gems/webrick@1.7.0.rbi +2553 -0
  186. data/sorbet/rbi/gems/yard@0.9.28.rbi +17954 -0
  187. data/sorbet/rbi/gems/zeitwerk@2.6.7.rbi +966 -0
  188. data/sorbet/rbi/models/acts-as-messageable/message.rbi +668 -0
  189. data/sorbet/rbi/models/acts-as-messageable/user.rbi +343 -0
  190. data/sorbet/rbi/rails-rbi/active_record_base.rbi +119 -0
  191. data/sorbet/rbi/rails-rbi/active_record_relation.rbi +180 -0
  192. data/sorbet/rbi/shims/activerecord.rbi +4 -0
  193. data/sorbet/rbi/shims/model.rbi +9 -0
  194. data/sorbet/tapioca/config.yml +10 -0
  195. data/sorbet/tapioca/pre_require.rb +5 -0
  196. data/sorbet/tapioca/require.rb +10 -0
  197. data/spec/acts_as_messageable_spec.rb +7 -4
  198. data/spec/custom_class_spec.rb +1 -0
  199. data/spec/custom_required_spec.rb +8 -4
  200. data/spec/group_messages_spec.rb +1 -0
  201. data/spec/migrations_spec.rb +2 -1
  202. data/spec/spec_helper.rb +19 -9
  203. data/spec/support/admin.rb +3 -0
  204. data/spec/support/custom_message.rb +3 -0
  205. data/spec/support/custom_message_uuid.rb +1 -0
  206. data/spec/support/custom_search_user.rb +3 -0
  207. data/spec/support/men.rb +1 -0
  208. data/spec/support/send_message.rb +8 -1
  209. data/spec/support/table_schema.rb +7 -6
  210. data/spec/support/user.rb +3 -0
  211. data/spec/support/uuid_user.rb +3 -0
  212. data/tasks/types.rake +46 -0
  213. metadata +261 -11
  214. data/.travis.yml +0 -55
@@ -0,0 +1,4553 @@
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//lib/rails/generators/actions.rb#7
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//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//lib/rails.rb#38
23
+ def app_class=(_arg0); end
24
+
25
+ # source://railties//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//lib/rails.rb#37
33
+ def application=(_arg0); end
34
+
35
+ # source://railties//lib/rails.rb#123
36
+ def autoloaders; end
37
+
38
+ # source://railties//lib/rails.rb#50
39
+ def backtrace_cleaner; end
40
+
41
+ # Returns the value of attribute cache.
42
+ #
43
+ # source://railties//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//lib/rails.rb#38
51
+ def cache=(_arg0); end
52
+
53
+ # The Configuration instance used to configure the Rails environment
54
+ #
55
+ # source://railties//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//lib/rails.rb#72
65
+ def env; end
66
+
67
+ # Sets the Rails environment.
68
+ #
69
+ # Rails.env = "staging" # => "staging"
70
+ #
71
+ # source://railties//lib/rails.rb#79
72
+ def env=(environment); end
73
+
74
+ # Returns the ActiveSupport::ErrorReporter of the current Rails project,
75
+ # otherwise it returns +nil+ if there is no project.
76
+ #
77
+ # Rails.error.handle(IOError) do
78
+ # # ...
79
+ # end
80
+ # Rails.error.report(error)
81
+ #
82
+ # source://railties//lib/rails.rb#90
83
+ def error; end
84
+
85
+ # Returns the currently loaded version of Rails as a <tt>Gem::Version</tt>.
86
+ #
87
+ # source://railties//lib/rails/gem_version.rb#5
88
+ def gem_version; end
89
+
90
+ # Returns all Rails groups for loading based on:
91
+ #
92
+ # * The Rails environment;
93
+ # * The environment variable RAILS_GROUPS;
94
+ # * The optional envs given as argument and the hash with group dependencies;
95
+ #
96
+ # Rails.groups assets: [:development, :test]
97
+ # # => [:default, "development", :assets] for Rails.env == "development"
98
+ # # => [:default, "production"] for Rails.env == "production"
99
+ #
100
+ # source://railties//lib/rails.rb#103
101
+ def groups(*groups); end
102
+
103
+ # source://railties//lib/rails.rb#43
104
+ def initialize!(*_arg0, **_arg1, &_arg2); end
105
+
106
+ # source://railties//lib/rails.rb#43
107
+ def initialized?(*_arg0, **_arg1, &_arg2); end
108
+
109
+ # Returns the value of attribute logger.
110
+ #
111
+ # source://railties//lib/rails.rb#38
112
+ def logger; end
113
+
114
+ # Sets the attribute logger
115
+ #
116
+ # @param value the value to set the attribute logger to.
117
+ #
118
+ # source://railties//lib/rails.rb#38
119
+ def logger=(_arg0); end
120
+
121
+ # Returns a Pathname object of the public folder of the current
122
+ # Rails project, otherwise it returns +nil+ if there is no project:
123
+ #
124
+ # Rails.public_path
125
+ # # => #<Pathname:/Users/someuser/some/path/project/public>
126
+ #
127
+ # source://railties//lib/rails.rb#119
128
+ def public_path; end
129
+
130
+ # Returns a Pathname object of the current Rails project,
131
+ # otherwise it returns +nil+ if there is no project:
132
+ #
133
+ # Rails.root
134
+ # # => #<Pathname:/Users/someuser/some/path/project>
135
+ #
136
+ # source://railties//lib/rails.rb#63
137
+ def root; end
138
+
139
+ # Returns the currently loaded version of Rails as a string.
140
+ #
141
+ # source://railties//lib/rails/version.rb#7
142
+ def version; end
143
+ end
144
+ end
145
+
146
+ # An Engine with the responsibility of coordinating the whole boot process.
147
+ #
148
+ # == Initialization
149
+ #
150
+ # Rails::Application is responsible for executing all railties and engines
151
+ # initializers. It also executes some bootstrap initializers (check
152
+ # Rails::Application::Bootstrap) and finishing initializers, after all the others
153
+ # are executed (check Rails::Application::Finisher).
154
+ #
155
+ # == \Configuration
156
+ #
157
+ # Besides providing the same configuration as Rails::Engine and Rails::Railtie,
158
+ # the application object has several specific configurations, for example
159
+ # +cache_classes+, +consider_all_requests_local+, +filter_parameters+,
160
+ # +logger+, and so forth.
161
+ #
162
+ # Check Rails::Application::Configuration to see them all.
163
+ #
164
+ # == Routes
165
+ #
166
+ # The application object is also responsible for holding the routes and reloading routes
167
+ # whenever the files change in development.
168
+ #
169
+ # == Middlewares
170
+ #
171
+ # The Application is also responsible for building the middleware stack.
172
+ #
173
+ # == Booting process
174
+ #
175
+ # The application is also responsible for setting up and executing the booting
176
+ # process. From the moment you require <tt>config/application.rb</tt> in your app,
177
+ # the booting process goes like this:
178
+ #
179
+ # 1. <tt>require "config/boot.rb"</tt> to set up load paths.
180
+ # 2. +require+ railties and engines.
181
+ # 3. Define +Rails.application+ as <tt>class MyApp::Application < Rails::Application</tt>.
182
+ # 4. Run +config.before_configuration+ callbacks.
183
+ # 5. Load <tt>config/environments/ENV.rb</tt>.
184
+ # 6. Run +config.before_initialize+ callbacks.
185
+ # 7. Run <tt>Railtie#initializer</tt> defined by railties, engines, and application.
186
+ # One by one, each engine sets up its load paths and routes, and runs its <tt>config/initializers/*</tt> files.
187
+ # 8. Custom <tt>Railtie#initializers</tt> added by railties, engines, and applications are executed.
188
+ # 9. Build the middleware stack and run +to_prepare+ callbacks.
189
+ # 10. Run +config.before_eager_load+ and +eager_load!+ if +eager_load+ is +true+.
190
+ # 11. Run +config.after_initialize+ callbacks.
191
+ #
192
+ # source://railties//lib/rails/application.rb#61
193
+ class Rails::Application < ::Rails::Engine
194
+ # @return [Application] a new instance of Application
195
+ #
196
+ # source://railties//lib/rails/application.rb#106
197
+ def initialize(initial_variable_values = T.unsafe(nil), &block); end
198
+
199
+ # Returns the value of attribute assets.
200
+ #
201
+ # source://railties//lib/rails/application.rb#97
202
+ def assets; end
203
+
204
+ # Sets the attribute assets
205
+ #
206
+ # @param value the value to set the attribute assets to.
207
+ #
208
+ # source://railties//lib/rails/application.rb#97
209
+ def assets=(_arg0); end
210
+
211
+ # Returns the value of attribute autoloaders.
212
+ #
213
+ # source://railties//lib/rails/application.rb#99
214
+ def autoloaders; end
215
+
216
+ # source://railties//lib/rails/engine.rb#511
217
+ def build_middleware_stack; end
218
+
219
+ # source://railties//lib/rails/application.rb#383
220
+ def config; end
221
+
222
+ # Sets the attribute config
223
+ #
224
+ # @param value the value to set the attribute config to.
225
+ #
226
+ # source://railties//lib/rails/application.rb#387
227
+ def config=(_arg0); end
228
+
229
+ # Convenience for loading config/foo.yml for the current Rails env.
230
+ #
231
+ # Examples:
232
+ #
233
+ # # config/exception_notification.yml:
234
+ # production:
235
+ # url: http://127.0.0.1:8080
236
+ # namespace: my_app_production
237
+ #
238
+ # development:
239
+ # url: http://localhost:3001
240
+ # namespace: my_app_development
241
+ #
242
+ # # config/environments/production.rb
243
+ # Rails.application.configure do
244
+ # config.middleware.use ExceptionNotifier, config_for(:exception_notification)
245
+ # end
246
+ #
247
+ # # You can also store configurations in a shared section which will be
248
+ # # merged with the environment configuration
249
+ #
250
+ # # config/example.yml
251
+ # shared:
252
+ # foo:
253
+ # bar:
254
+ # baz: 1
255
+ #
256
+ # development:
257
+ # foo:
258
+ # bar:
259
+ # qux: 2
260
+ #
261
+ # # development environment
262
+ # Rails.application.config_for(:example)[:foo][:bar]
263
+ # # => { baz: 1, qux: 2 }
264
+ #
265
+ # source://railties//lib/rails/application.rb#221
266
+ def config_for(name, env: T.unsafe(nil)); end
267
+
268
+ # Sends any console called in the instance of a new application up
269
+ # to the +console+ method defined in Rails::Railtie.
270
+ #
271
+ # source://railties//lib/rails/application.rb#303
272
+ def console(&blk); end
273
+
274
+ # Decrypts the credentials hash as kept in +config/credentials.yml.enc+. This file is encrypted with
275
+ # the Rails master key, which is either taken from <tt>ENV["RAILS_MASTER_KEY"]</tt> or from loading
276
+ # +config/master.key+.
277
+ # If specific credentials file exists for current environment, it takes precedence, thus for +production+
278
+ # environment look first for +config/credentials/production.yml.enc+ with master key taken
279
+ # from <tt>ENV["RAILS_MASTER_KEY"]</tt> or from loading +config/credentials/production.key+.
280
+ # Default behavior can be overwritten by setting +config.credentials.content_path+ and +config.credentials.key_path+.
281
+ #
282
+ # source://railties//lib/rails/application.rb#432
283
+ def credentials; end
284
+
285
+ # Sets the attribute credentials
286
+ #
287
+ # @param value the value to set the attribute credentials to.
288
+ #
289
+ # source://railties//lib/rails/application.rb#403
290
+ def credentials=(_arg0); end
291
+
292
+ # source://railties//lib/rails/application.rb#101
293
+ def default_url_options(*_arg0, **_arg1, &_arg2); end
294
+
295
+ # source://railties//lib/rails/application.rb#101
296
+ def default_url_options=(arg); end
297
+
298
+ # Eager loads the application code.
299
+ #
300
+ # source://railties//lib/rails/application.rb#497
301
+ def eager_load!; end
302
+
303
+ # Shorthand to decrypt any encrypted configurations or files.
304
+ #
305
+ # For any file added with <tt>rails encrypted:edit</tt> call +read+ to decrypt
306
+ # the file with the master key.
307
+ # The master key is either stored in +config/master.key+ or <tt>ENV["RAILS_MASTER_KEY"]</tt>.
308
+ #
309
+ # Rails.application.encrypted("config/mystery_man.txt.enc").read
310
+ # # => "We've met before, haven't we?"
311
+ #
312
+ # It's also possible to interpret encrypted YAML files with +config+.
313
+ #
314
+ # Rails.application.encrypted("config/credentials.yml.enc").config
315
+ # # => { next_guys_line: "I don't think so. Where was it you think we met?" }
316
+ #
317
+ # Any top-level configs are also accessible directly on the return value:
318
+ #
319
+ # Rails.application.encrypted("config/credentials.yml.enc").next_guys_line
320
+ # # => "I don't think so. Where was it you think we met?"
321
+ #
322
+ # The files or configs can also be encrypted with a custom key. To decrypt with
323
+ # a key in the +ENV+, use:
324
+ #
325
+ # Rails.application.encrypted("config/special_tokens.yml.enc", env_key: "SPECIAL_TOKENS")
326
+ #
327
+ # Or to decrypt with a file, that should be version control ignored, relative to +Rails.root+:
328
+ #
329
+ # Rails.application.encrypted("config/special_tokens.yml.enc", key_path: "config/special_tokens.key")
330
+ #
331
+ # source://railties//lib/rails/application.rb#463
332
+ def encrypted(path, key_path: T.unsafe(nil), env_key: T.unsafe(nil)); end
333
+
334
+ # Stores some of the Rails initial environment parameters which
335
+ # will be used by middlewares and engines to configure themselves.
336
+ #
337
+ # source://railties//lib/rails/application.rb#250
338
+ def env_config; end
339
+
340
+ # Returns the value of attribute executor.
341
+ #
342
+ # source://railties//lib/rails/application.rb#99
343
+ def executor; end
344
+
345
+ # Sends any generators called in the instance of a new application up
346
+ # to the +generators+ method defined in Rails::Railtie.
347
+ #
348
+ # source://railties//lib/rails/application.rb#309
349
+ def generators(&blk); end
350
+
351
+ # source://railties//lib/rails/application.rb#476
352
+ def helpers_paths; end
353
+
354
+ # Initialize the application passing the given group. By default, the
355
+ # group is :default
356
+ #
357
+ # source://railties//lib/rails/application.rb#370
358
+ def initialize!(group = T.unsafe(nil)); end
359
+
360
+ # Returns true if the application is initialized.
361
+ #
362
+ # @return [Boolean]
363
+ #
364
+ # source://railties//lib/rails/application.rb#129
365
+ def initialized?; end
366
+
367
+ # Sends the initializers to the +initializer+ method defined in the
368
+ # Rails::Initializable module. Each Rails::Application class has its own
369
+ # set of initializers, as defined by the Initializable module.
370
+ #
371
+ # source://railties//lib/rails/application.rb#291
372
+ def initializer(name, opts = T.unsafe(nil), &block); end
373
+
374
+ # source://railties//lib/rails/application.rb#377
375
+ def initializers; end
376
+
377
+ # Sends the +isolate_namespace+ method up to the class method.
378
+ #
379
+ # source://railties//lib/rails/application.rb#320
380
+ def isolate_namespace(mod); end
381
+
382
+ # Returns the application's KeyGenerator
383
+ #
384
+ # source://railties//lib/rails/application.rb#153
385
+ def key_generator; end
386
+
387
+ # Returns a message verifier object.
388
+ #
389
+ # This verifier can be used to generate and verify signed messages in the application.
390
+ #
391
+ # It is recommended not to use the same verifier for different things, so you can get different
392
+ # verifiers passing the +verifier_name+ argument.
393
+ #
394
+ # ==== Parameters
395
+ #
396
+ # * +verifier_name+ - the name of the message verifier.
397
+ #
398
+ # ==== Examples
399
+ #
400
+ # message = Rails.application.message_verifier('sensitive_data').generate('my sensible data')
401
+ # Rails.application.message_verifier('sensitive_data').verify(message)
402
+ # # => 'my sensible data'
403
+ #
404
+ # See the ActiveSupport::MessageVerifier documentation for more information.
405
+ #
406
+ # source://railties//lib/rails/application.rb#179
407
+ def message_verifier(verifier_name); end
408
+
409
+ # Return an array of railties respecting the order they're loaded
410
+ # and the order specified by the +railties_order+ config.
411
+ #
412
+ # While running initializers we need engines in reverse order here when
413
+ # copying migrations from railties ; we need them in the order given by
414
+ # +railties_order+.
415
+ #
416
+ # source://railties//lib/rails/application.rb#492
417
+ def migration_railties; end
418
+
419
+ # If you try to define a set of Rake tasks on the instance, these will get
420
+ # passed up to the Rake tasks defined on the application's class.
421
+ #
422
+ # source://railties//lib/rails/application.rb#284
423
+ def rake_tasks(&block); end
424
+
425
+ # Reload application routes regardless if they changed or not.
426
+ #
427
+ # source://railties//lib/rails/application.rb#148
428
+ def reload_routes!; end
429
+
430
+ # Returns the value of attribute reloader.
431
+ #
432
+ # source://railties//lib/rails/application.rb#99
433
+ def reloader; end
434
+
435
+ # Returns the value of attribute reloaders.
436
+ #
437
+ # source://railties//lib/rails/application.rb#99
438
+ def reloaders; end
439
+
440
+ # source://railties//lib/rails/application.rb#346
441
+ def require_environment!; end
442
+
443
+ # source://railties//lib/rails/application.rb#351
444
+ def routes_reloader; end
445
+
446
+ # source://railties//lib/rails/application.rb#133
447
+ def run_load_hooks!; end
448
+
449
+ # Sends any runner called in the instance of a new application up
450
+ # to the +runner+ method defined in Rails::Railtie.
451
+ #
452
+ # source://railties//lib/rails/application.rb#297
453
+ def runner(&blk); end
454
+
455
+ # Returns the value of attribute sandbox.
456
+ #
457
+ # source://railties//lib/rails/application.rb#97
458
+ def sandbox; end
459
+
460
+ # Sets the attribute sandbox
461
+ #
462
+ # @param value the value to set the attribute sandbox to.
463
+ #
464
+ # source://railties//lib/rails/application.rb#97
465
+ def sandbox=(_arg0); end
466
+
467
+ # Returns the value of attribute sandbox.
468
+ #
469
+ # source://railties//lib/rails/application.rb#97
470
+ def sandbox?; end
471
+
472
+ # The secret_key_base is used as the input secret to the application's key generator, which in turn
473
+ # is used to create all ActiveSupport::MessageVerifier and ActiveSupport::MessageEncryptor instances,
474
+ # including the ones that sign and encrypt cookies.
475
+ #
476
+ # In development and test, this is randomly generated and stored in a
477
+ # temporary file in <tt>tmp/development_secret.txt</tt>.
478
+ #
479
+ # In all other environments, we look for it first in <tt>ENV["SECRET_KEY_BASE"]</tt>,
480
+ # then +credentials.secret_key_base+, and finally +secrets.secret_key_base+. For most applications,
481
+ # the correct place to store it is in the encrypted credentials file.
482
+ #
483
+ # source://railties//lib/rails/application.rb#415
484
+ def secret_key_base; end
485
+
486
+ # source://railties//lib/rails/application.rb#389
487
+ def secrets; end
488
+
489
+ # Sets the attribute secrets
490
+ #
491
+ # @param value the value to set the attribute secrets to.
492
+ #
493
+ # source://railties//lib/rails/application.rb#403
494
+ def secrets=(_arg0); end
495
+
496
+ # Sends any server called in the instance of a new application up
497
+ # to the +server+ method defined in Rails::Railtie.
498
+ #
499
+ # source://railties//lib/rails/application.rb#315
500
+ def server(&blk); end
501
+
502
+ # source://railties//lib/rails/application.rb#472
503
+ def to_app; end
504
+
505
+ # Returns an array of file paths appended with a hash of
506
+ # directories-extensions suitable for ActiveSupport::FileUpdateChecker
507
+ # API.
508
+ #
509
+ # source://railties//lib/rails/application.rb#358
510
+ def watchable_args; end
511
+
512
+ protected
513
+
514
+ # source://railties//lib/rails/application.rb#570
515
+ def default_middleware_stack; end
516
+
517
+ # Returns the ordered railties for this application considering railties_order.
518
+ #
519
+ # source://railties//lib/rails/application.rb#536
520
+ def ordered_railties; end
521
+
522
+ # source://railties//lib/rails/application.rb#558
523
+ def railties_initializers(current); end
524
+
525
+ # source://railties//lib/rails/application.rb#525
526
+ def run_console_blocks(app); end
527
+
528
+ # source://railties//lib/rails/application.rb#515
529
+ def run_generators_blocks(app); end
530
+
531
+ # source://railties//lib/rails/application.rb#520
532
+ def run_runner_blocks(app); end
533
+
534
+ # source://railties//lib/rails/application.rb#530
535
+ def run_server_blocks(app); end
536
+
537
+ # source://railties//lib/rails/application.rb#504
538
+ def run_tasks_blocks(app); end
539
+
540
+ # source://railties//lib/rails/application.rb#575
541
+ def validate_secret_key_base(secret_key_base); end
542
+
543
+ private
544
+
545
+ # source://railties//lib/rails/application.rb#609
546
+ def build_middleware; end
547
+
548
+ # source://railties//lib/rails/application.rb#602
549
+ def build_request(env); end
550
+
551
+ # source://railties//lib/rails/application.rb#613
552
+ def coerce_same_site_protection(protection); end
553
+
554
+ # source://railties//lib/rails/application.rb#586
555
+ def generate_development_secret; end
556
+
557
+ class << self
558
+ # This method is called just after an application inherits from Rails::Application,
559
+ # allowing the developer to load classes in lib and use them during application
560
+ # configuration.
561
+ #
562
+ # class MyApplication < Rails::Application
563
+ # require "my_backend" # in lib/my_backend
564
+ # config.i18n.backend = MyBackend
565
+ # end
566
+ #
567
+ # Notice this method takes into consideration the default root path. So if you
568
+ # are changing config.root inside your application definition or having a custom
569
+ # Rails application, you will need to add lib to $LOAD_PATH on your own in case
570
+ # you need to load files in lib/ during the application configuration as well.
571
+ #
572
+ # source://railties//lib/rails/application.rb#339
573
+ def add_lib_to_load_path!(root); end
574
+
575
+ # source://railties//lib/rails/application.rb#81
576
+ def create(initial_variable_values = T.unsafe(nil), &block); end
577
+
578
+ # source://railties//lib/rails/application.rb#85
579
+ def find_root(from); end
580
+
581
+ # @private
582
+ #
583
+ # source://railties//lib/rails/application.rb#70
584
+ def inherited(base); end
585
+
586
+ # source://railties//lib/rails/application.rb#77
587
+ def instance; end
588
+
589
+ def new(*_arg0); end
590
+ end
591
+ end
592
+
593
+ # source://railties//lib/rails/application/bootstrap.rb#11
594
+ module Rails::Application::Bootstrap
595
+ include ::Rails::Initializable
596
+ extend ::Rails::Initializable::ClassMethods
597
+ end
598
+
599
+ # source://railties//lib/rails/application/configuration.rb#12
600
+ class Rails::Application::Configuration < ::Rails::Engine::Configuration
601
+ # @return [Configuration] a new instance of Configuration
602
+ #
603
+ # source://railties//lib/rails/application/configuration.rb#28
604
+ def initialize(*_arg0); end
605
+
606
+ # Returns the value of attribute add_autoload_paths_to_load_path.
607
+ #
608
+ # source://railties//lib/rails/application/configuration.rb#13
609
+ def add_autoload_paths_to_load_path; end
610
+
611
+ # Sets the attribute add_autoload_paths_to_load_path
612
+ #
613
+ # @param value the value to set the attribute add_autoload_paths_to_load_path to.
614
+ #
615
+ # source://railties//lib/rails/application/configuration.rb#13
616
+ def add_autoload_paths_to_load_path=(_arg0); end
617
+
618
+ # Returns the value of attribute allow_concurrency.
619
+ #
620
+ # source://railties//lib/rails/application/configuration.rb#13
621
+ def allow_concurrency; end
622
+
623
+ # Sets the attribute allow_concurrency
624
+ #
625
+ # @param value the value to set the attribute allow_concurrency to.
626
+ #
627
+ # source://railties//lib/rails/application/configuration.rb#13
628
+ def allow_concurrency=(_arg0); end
629
+
630
+ # source://railties//lib/rails/application/configuration.rb#415
631
+ def annotations; end
632
+
633
+ # Returns the value of attribute api_only.
634
+ #
635
+ # source://railties//lib/rails/application/configuration.rb#26
636
+ def api_only; end
637
+
638
+ # source://railties//lib/rails/application/configuration.rb#276
639
+ def api_only=(value); end
640
+
641
+ # Returns the value of attribute asset_host.
642
+ #
643
+ # source://railties//lib/rails/application/configuration.rb#13
644
+ def asset_host; end
645
+
646
+ # Sets the attribute asset_host
647
+ #
648
+ # @param value the value to set the attribute asset_host to.
649
+ #
650
+ # source://railties//lib/rails/application/configuration.rb#13
651
+ def asset_host=(_arg0); end
652
+
653
+ # Returns the value of attribute autoflush_log.
654
+ #
655
+ # source://railties//lib/rails/application/configuration.rb#13
656
+ def autoflush_log; end
657
+
658
+ # Sets the attribute autoflush_log
659
+ #
660
+ # @param value the value to set the attribute autoflush_log to.
661
+ #
662
+ # source://railties//lib/rails/application/configuration.rb#13
663
+ def autoflush_log=(_arg0); end
664
+
665
+ # Returns the value of attribute beginning_of_week.
666
+ #
667
+ # source://railties//lib/rails/application/configuration.rb#13
668
+ def beginning_of_week; end
669
+
670
+ # Sets the attribute beginning_of_week
671
+ #
672
+ # @param value the value to set the attribute beginning_of_week to.
673
+ #
674
+ # source://railties//lib/rails/application/configuration.rb#13
675
+ def beginning_of_week=(_arg0); end
676
+
677
+ # Returns the value of attribute cache_classes.
678
+ #
679
+ # source://railties//lib/rails/application/configuration.rb#13
680
+ def cache_classes; end
681
+
682
+ # Sets the attribute cache_classes
683
+ #
684
+ # @param value the value to set the attribute cache_classes to.
685
+ #
686
+ # source://railties//lib/rails/application/configuration.rb#13
687
+ def cache_classes=(_arg0); end
688
+
689
+ # Returns the value of attribute cache_store.
690
+ #
691
+ # source://railties//lib/rails/application/configuration.rb#13
692
+ def cache_store; end
693
+
694
+ # Sets the attribute cache_store
695
+ #
696
+ # @param value the value to set the attribute cache_store to.
697
+ #
698
+ # source://railties//lib/rails/application/configuration.rb#13
699
+ def cache_store=(_arg0); end
700
+
701
+ # source://railties//lib/rails/application/configuration.rb#361
702
+ def colorize_logging; end
703
+
704
+ # source://railties//lib/rails/application/configuration.rb#365
705
+ def colorize_logging=(val); end
706
+
707
+ # Returns the value of attribute consider_all_requests_local.
708
+ #
709
+ # source://railties//lib/rails/application/configuration.rb#13
710
+ def consider_all_requests_local; end
711
+
712
+ # Sets the attribute consider_all_requests_local
713
+ #
714
+ # @param value the value to set the attribute consider_all_requests_local to.
715
+ #
716
+ # source://railties//lib/rails/application/configuration.rb#13
717
+ def consider_all_requests_local=(_arg0); end
718
+
719
+ # Returns the value of attribute console.
720
+ #
721
+ # source://railties//lib/rails/application/configuration.rb#13
722
+ def console; end
723
+
724
+ # Sets the attribute console
725
+ #
726
+ # @param value the value to set the attribute console to.
727
+ #
728
+ # source://railties//lib/rails/application/configuration.rb#13
729
+ def console=(_arg0); end
730
+
731
+ # Configures the ActionDispatch::ContentSecurityPolicy.
732
+ #
733
+ # source://railties//lib/rails/application/configuration.rb#420
734
+ def content_security_policy(&block); end
735
+
736
+ # Returns the value of attribute content_security_policy_nonce_directives.
737
+ #
738
+ # source://railties//lib/rails/application/configuration.rb#13
739
+ def content_security_policy_nonce_directives; end
740
+
741
+ # Sets the attribute content_security_policy_nonce_directives
742
+ #
743
+ # @param value the value to set the attribute content_security_policy_nonce_directives to.
744
+ #
745
+ # source://railties//lib/rails/application/configuration.rb#13
746
+ def content_security_policy_nonce_directives=(_arg0); end
747
+
748
+ # Returns the value of attribute content_security_policy_nonce_generator.
749
+ #
750
+ # source://railties//lib/rails/application/configuration.rb#13
751
+ def content_security_policy_nonce_generator; end
752
+
753
+ # Sets the attribute content_security_policy_nonce_generator
754
+ #
755
+ # @param value the value to set the attribute content_security_policy_nonce_generator to.
756
+ #
757
+ # source://railties//lib/rails/application/configuration.rb#13
758
+ def content_security_policy_nonce_generator=(_arg0); end
759
+
760
+ # Returns the value of attribute content_security_policy_report_only.
761
+ #
762
+ # source://railties//lib/rails/application/configuration.rb#13
763
+ def content_security_policy_report_only; end
764
+
765
+ # Sets the attribute content_security_policy_report_only
766
+ #
767
+ # @param value the value to set the attribute content_security_policy_report_only to.
768
+ #
769
+ # source://railties//lib/rails/application/configuration.rb#13
770
+ def content_security_policy_report_only=(_arg0); end
771
+
772
+ # Returns the value of attribute credentials.
773
+ #
774
+ # source://railties//lib/rails/application/configuration.rb#13
775
+ def credentials; end
776
+
777
+ # Sets the attribute credentials
778
+ #
779
+ # @param value the value to set the attribute credentials to.
780
+ #
781
+ # source://railties//lib/rails/application/configuration.rb#13
782
+ def credentials=(_arg0); end
783
+
784
+ # Loads and returns the entire raw configuration of database from
785
+ # values stored in <tt>config/database.yml</tt>.
786
+ #
787
+ # source://railties//lib/rails/application/configuration.rb#330
788
+ def database_configuration; end
789
+
790
+ # source://railties//lib/rails/application/configuration.rb#283
791
+ def debug_exception_response_format; end
792
+
793
+ # Sets the attribute debug_exception_response_format
794
+ #
795
+ # @param value the value to set the attribute debug_exception_response_format to.
796
+ #
797
+ # source://railties//lib/rails/application/configuration.rb#287
798
+ def debug_exception_response_format=(_arg0); end
799
+
800
+ # source://railties//lib/rails/application/configuration.rb#437
801
+ def default_log_file; end
802
+
803
+ # Returns the value of attribute disable_sandbox.
804
+ #
805
+ # source://railties//lib/rails/application/configuration.rb#13
806
+ def disable_sandbox; end
807
+
808
+ # Sets the attribute disable_sandbox
809
+ #
810
+ # @param value the value to set the attribute disable_sandbox to.
811
+ #
812
+ # source://railties//lib/rails/application/configuration.rb#13
813
+ def disable_sandbox=(_arg0); end
814
+
815
+ # Returns the value of attribute eager_load.
816
+ #
817
+ # source://railties//lib/rails/application/configuration.rb#13
818
+ def eager_load; end
819
+
820
+ # Sets the attribute eager_load
821
+ #
822
+ # @param value the value to set the attribute eager_load to.
823
+ #
824
+ # source://railties//lib/rails/application/configuration.rb#13
825
+ def eager_load=(_arg0); end
826
+
827
+ # Returns the value of attribute enable_dependency_loading.
828
+ #
829
+ # source://railties//lib/rails/application/configuration.rb#13
830
+ def enable_dependency_loading; end
831
+
832
+ # Sets the attribute enable_dependency_loading
833
+ #
834
+ # @param value the value to set the attribute enable_dependency_loading to.
835
+ #
836
+ # source://railties//lib/rails/application/configuration.rb#13
837
+ def enable_dependency_loading=(_arg0); end
838
+
839
+ # Returns the value of attribute encoding.
840
+ #
841
+ # source://railties//lib/rails/application/configuration.rb#26
842
+ def encoding; end
843
+
844
+ # source://railties//lib/rails/application/configuration.rb#268
845
+ def encoding=(value); end
846
+
847
+ # Returns the value of attribute exceptions_app.
848
+ #
849
+ # source://railties//lib/rails/application/configuration.rb#13
850
+ def exceptions_app; end
851
+
852
+ # Sets the attribute exceptions_app
853
+ #
854
+ # @param value the value to set the attribute exceptions_app to.
855
+ #
856
+ # source://railties//lib/rails/application/configuration.rb#13
857
+ def exceptions_app=(_arg0); end
858
+
859
+ # Returns the value of attribute file_watcher.
860
+ #
861
+ # source://railties//lib/rails/application/configuration.rb#13
862
+ def file_watcher; end
863
+
864
+ # Sets the attribute file_watcher
865
+ #
866
+ # @param value the value to set the attribute file_watcher to.
867
+ #
868
+ # source://railties//lib/rails/application/configuration.rb#13
869
+ def file_watcher=(_arg0); end
870
+
871
+ # Returns the value of attribute filter_parameters.
872
+ #
873
+ # source://railties//lib/rails/application/configuration.rb#13
874
+ def filter_parameters; end
875
+
876
+ # Sets the attribute filter_parameters
877
+ #
878
+ # @param value the value to set the attribute filter_parameters to.
879
+ #
880
+ # source://railties//lib/rails/application/configuration.rb#13
881
+ def filter_parameters=(_arg0); end
882
+
883
+ # Returns the value of attribute filter_redirect.
884
+ #
885
+ # source://railties//lib/rails/application/configuration.rb#13
886
+ def filter_redirect; end
887
+
888
+ # Sets the attribute filter_redirect
889
+ #
890
+ # @param value the value to set the attribute filter_redirect to.
891
+ #
892
+ # source://railties//lib/rails/application/configuration.rb#13
893
+ def filter_redirect=(_arg0); end
894
+
895
+ # Returns the value of attribute force_ssl.
896
+ #
897
+ # source://railties//lib/rails/application/configuration.rb#13
898
+ def force_ssl; end
899
+
900
+ # Sets the attribute force_ssl
901
+ #
902
+ # @param value the value to set the attribute force_ssl to.
903
+ #
904
+ # source://railties//lib/rails/application/configuration.rb#13
905
+ def force_ssl=(_arg0); end
906
+
907
+ # Returns the value of attribute helpers_paths.
908
+ #
909
+ # source://railties//lib/rails/application/configuration.rb#13
910
+ def helpers_paths; end
911
+
912
+ # Sets the attribute helpers_paths
913
+ #
914
+ # @param value the value to set the attribute helpers_paths to.
915
+ #
916
+ # source://railties//lib/rails/application/configuration.rb#13
917
+ def helpers_paths=(_arg0); end
918
+
919
+ # Returns the value of attribute host_authorization.
920
+ #
921
+ # source://railties//lib/rails/application/configuration.rb#13
922
+ def host_authorization; end
923
+
924
+ # Sets the attribute host_authorization
925
+ #
926
+ # @param value the value to set the attribute host_authorization to.
927
+ #
928
+ # source://railties//lib/rails/application/configuration.rb#13
929
+ def host_authorization=(_arg0); end
930
+
931
+ # Returns the value of attribute hosts.
932
+ #
933
+ # source://railties//lib/rails/application/configuration.rb#13
934
+ def hosts; end
935
+
936
+ # Sets the attribute hosts
937
+ #
938
+ # @param value the value to set the attribute hosts to.
939
+ #
940
+ # source://railties//lib/rails/application/configuration.rb#13
941
+ def hosts=(_arg0); end
942
+
943
+ # Load the database YAML without evaluating ERB. This allows us to
944
+ # create the rake tasks for multiple databases without filling in the
945
+ # configuration values or loading the environment. Do not use this
946
+ # method.
947
+ #
948
+ # This uses a DummyERB custom compiler so YAML can ignore the ERB
949
+ # tags and load the database.yml for the rake tasks.
950
+ #
951
+ # source://railties//lib/rails/application/configuration.rb#312
952
+ def load_database_yaml; end
953
+
954
+ # Loads default configuration values for a target version. This includes
955
+ # defaults for versions prior to the target version. See the
956
+ # {configuration guide}[https://guides.rubyonrails.org/configuring.html]
957
+ # for the default values associated with a particular version.
958
+ #
959
+ # source://railties//lib/rails/application/configuration.rb#88
960
+ def load_defaults(target_version); end
961
+
962
+ # Returns the value of attribute loaded_config_version.
963
+ #
964
+ # source://railties//lib/rails/application/configuration.rb#26
965
+ def loaded_config_version; end
966
+
967
+ # Returns the value of attribute log_formatter.
968
+ #
969
+ # source://railties//lib/rails/application/configuration.rb#13
970
+ def log_formatter; end
971
+
972
+ # Sets the attribute log_formatter
973
+ #
974
+ # @param value the value to set the attribute log_formatter to.
975
+ #
976
+ # source://railties//lib/rails/application/configuration.rb#13
977
+ def log_formatter=(_arg0); end
978
+
979
+ # Returns the value of attribute log_level.
980
+ #
981
+ # source://railties//lib/rails/application/configuration.rb#13
982
+ def log_level; end
983
+
984
+ # Sets the attribute log_level
985
+ #
986
+ # @param value the value to set the attribute log_level to.
987
+ #
988
+ # source://railties//lib/rails/application/configuration.rb#13
989
+ def log_level=(_arg0); end
990
+
991
+ # Returns the value of attribute log_tags.
992
+ #
993
+ # source://railties//lib/rails/application/configuration.rb#13
994
+ def log_tags; end
995
+
996
+ # Sets the attribute log_tags
997
+ #
998
+ # @param value the value to set the attribute log_tags to.
999
+ #
1000
+ # source://railties//lib/rails/application/configuration.rb#13
1001
+ def log_tags=(_arg0); end
1002
+
1003
+ # Returns the value of attribute logger.
1004
+ #
1005
+ # source://railties//lib/rails/application/configuration.rb#13
1006
+ def logger; end
1007
+
1008
+ # Sets the attribute logger
1009
+ #
1010
+ # @param value the value to set the attribute logger to.
1011
+ #
1012
+ # source://railties//lib/rails/application/configuration.rb#13
1013
+ def logger=(_arg0); end
1014
+
1015
+ # source://railties//lib/rails/application/configuration.rb#289
1016
+ def paths; end
1017
+
1018
+ # Configures the ActionDispatch::PermissionsPolicy.
1019
+ #
1020
+ # source://railties//lib/rails/application/configuration.rb#429
1021
+ def permissions_policy(&block); end
1022
+
1023
+ # Returns the value of attribute public_file_server.
1024
+ #
1025
+ # source://railties//lib/rails/application/configuration.rb#13
1026
+ def public_file_server; end
1027
+
1028
+ # Sets the attribute public_file_server
1029
+ #
1030
+ # @param value the value to set the attribute public_file_server to.
1031
+ #
1032
+ # source://railties//lib/rails/application/configuration.rb#13
1033
+ def public_file_server=(_arg0); end
1034
+
1035
+ # Returns the value of attribute railties_order.
1036
+ #
1037
+ # source://railties//lib/rails/application/configuration.rb#13
1038
+ def railties_order; end
1039
+
1040
+ # Sets the attribute railties_order
1041
+ #
1042
+ # @param value the value to set the attribute railties_order to.
1043
+ #
1044
+ # source://railties//lib/rails/application/configuration.rb#13
1045
+ def railties_order=(_arg0); end
1046
+
1047
+ # Returns the value of attribute rake_eager_load.
1048
+ #
1049
+ # source://railties//lib/rails/application/configuration.rb#13
1050
+ def rake_eager_load; end
1051
+
1052
+ # Sets the attribute rake_eager_load
1053
+ #
1054
+ # @param value the value to set the attribute rake_eager_load to.
1055
+ #
1056
+ # source://railties//lib/rails/application/configuration.rb#13
1057
+ def rake_eager_load=(_arg0); end
1058
+
1059
+ # Returns the value of attribute read_encrypted_secrets.
1060
+ #
1061
+ # source://railties//lib/rails/application/configuration.rb#13
1062
+ def read_encrypted_secrets; end
1063
+
1064
+ # Sets the attribute read_encrypted_secrets
1065
+ #
1066
+ # @param value the value to set the attribute read_encrypted_secrets to.
1067
+ #
1068
+ # source://railties//lib/rails/application/configuration.rb#13
1069
+ def read_encrypted_secrets=(_arg0); end
1070
+
1071
+ # Returns the value of attribute relative_url_root.
1072
+ #
1073
+ # source://railties//lib/rails/application/configuration.rb#13
1074
+ def relative_url_root; end
1075
+
1076
+ # Sets the attribute relative_url_root
1077
+ #
1078
+ # @param value the value to set the attribute relative_url_root to.
1079
+ #
1080
+ # source://railties//lib/rails/application/configuration.rb#13
1081
+ def relative_url_root=(_arg0); end
1082
+
1083
+ # Returns the value of attribute reload_classes_only_on_change.
1084
+ #
1085
+ # source://railties//lib/rails/application/configuration.rb#13
1086
+ def reload_classes_only_on_change; end
1087
+
1088
+ # Sets the attribute reload_classes_only_on_change
1089
+ #
1090
+ # @param value the value to set the attribute reload_classes_only_on_change to.
1091
+ #
1092
+ # source://railties//lib/rails/application/configuration.rb#13
1093
+ def reload_classes_only_on_change=(_arg0); end
1094
+
1095
+ # Returns the value of attribute require_master_key.
1096
+ #
1097
+ # source://railties//lib/rails/application/configuration.rb#13
1098
+ def require_master_key; end
1099
+
1100
+ # Sets the attribute require_master_key
1101
+ #
1102
+ # @param value the value to set the attribute require_master_key to.
1103
+ #
1104
+ # source://railties//lib/rails/application/configuration.rb#13
1105
+ def require_master_key=(_arg0); end
1106
+
1107
+ # Returns the value of attribute secret_key_base.
1108
+ #
1109
+ # source://railties//lib/rails/application/configuration.rb#13
1110
+ def secret_key_base; end
1111
+
1112
+ # Sets the attribute secret_key_base
1113
+ #
1114
+ # @param value the value to set the attribute secret_key_base to.
1115
+ #
1116
+ # source://railties//lib/rails/application/configuration.rb#13
1117
+ def secret_key_base=(_arg0); end
1118
+
1119
+ # Returns the value of attribute server_timing.
1120
+ #
1121
+ # source://railties//lib/rails/application/configuration.rb#13
1122
+ def server_timing; end
1123
+
1124
+ # Sets the attribute server_timing
1125
+ #
1126
+ # @param value the value to set the attribute server_timing to.
1127
+ #
1128
+ # source://railties//lib/rails/application/configuration.rb#13
1129
+ def server_timing=(_arg0); end
1130
+
1131
+ # Returns the value of attribute session_options.
1132
+ #
1133
+ # source://railties//lib/rails/application/configuration.rb#13
1134
+ def session_options; end
1135
+
1136
+ # Sets the attribute session_options
1137
+ #
1138
+ # @param value the value to set the attribute session_options to.
1139
+ #
1140
+ # source://railties//lib/rails/application/configuration.rb#13
1141
+ def session_options=(_arg0); end
1142
+
1143
+ # Specifies what class to use to store the session. Possible values
1144
+ # are +:cookie_store+, +:mem_cache_store+, a custom store, or
1145
+ # +:disabled+. +:disabled+ tells Rails not to deal with sessions.
1146
+ #
1147
+ # Additional options will be set as +session_options+:
1148
+ #
1149
+ # config.session_store :cookie_store, key: "_your_app_session"
1150
+ # config.session_options # => {key: "_your_app_session"}
1151
+ #
1152
+ # If a custom store is specified as a symbol, it will be resolved to
1153
+ # the +ActionDispatch::Session+ namespace:
1154
+ #
1155
+ # # use ActionDispatch::Session::MyCustomStore as the session store
1156
+ # config.session_store :my_custom_store
1157
+ #
1158
+ # source://railties//lib/rails/application/configuration.rb#384
1159
+ def session_store(new_session_store = T.unsafe(nil), **options); end
1160
+
1161
+ # @return [Boolean]
1162
+ #
1163
+ # source://railties//lib/rails/application/configuration.rb#411
1164
+ def session_store?; end
1165
+
1166
+ # Returns the value of attribute ssl_options.
1167
+ #
1168
+ # source://railties//lib/rails/application/configuration.rb#13
1169
+ def ssl_options; end
1170
+
1171
+ # Sets the attribute ssl_options
1172
+ #
1173
+ # @param value the value to set the attribute ssl_options to.
1174
+ #
1175
+ # source://railties//lib/rails/application/configuration.rb#13
1176
+ def ssl_options=(_arg0); end
1177
+
1178
+ # Returns the value of attribute time_zone.
1179
+ #
1180
+ # source://railties//lib/rails/application/configuration.rb#13
1181
+ def time_zone; end
1182
+
1183
+ # Sets the attribute time_zone
1184
+ #
1185
+ # @param value the value to set the attribute time_zone to.
1186
+ #
1187
+ # source://railties//lib/rails/application/configuration.rb#13
1188
+ def time_zone=(_arg0); end
1189
+
1190
+ # Returns the value of attribute x.
1191
+ #
1192
+ # source://railties//lib/rails/application/configuration.rb#13
1193
+ def x; end
1194
+
1195
+ # Sets the attribute x
1196
+ #
1197
+ # @param value the value to set the attribute x to.
1198
+ #
1199
+ # source://railties//lib/rails/application/configuration.rb#13
1200
+ def x=(_arg0); end
1201
+
1202
+ private
1203
+
1204
+ # @return [Boolean]
1205
+ #
1206
+ # source://railties//lib/rails/application/configuration.rb#486
1207
+ def credentials_available_for_current_env?; end
1208
+
1209
+ # source://railties//lib/rails/application/configuration.rb#470
1210
+ def default_credentials_content_path; end
1211
+
1212
+ # source://railties//lib/rails/application/configuration.rb#478
1213
+ def default_credentials_key_path; end
1214
+ end
1215
+
1216
+ # source://railties//lib/rails/application/configuration.rb#449
1217
+ class Rails::Application::Configuration::Custom
1218
+ # @return [Custom] a new instance of Custom
1219
+ #
1220
+ # source://railties//lib/rails/application/configuration.rb#450
1221
+ def initialize; end
1222
+
1223
+ # source://railties//lib/rails/application/configuration.rb#454
1224
+ def method_missing(method, *args); end
1225
+
1226
+ private
1227
+
1228
+ # @return [Boolean]
1229
+ #
1230
+ # source://railties//lib/rails/application/configuration.rb#464
1231
+ def respond_to_missing?(symbol, *_arg1); end
1232
+ end
1233
+
1234
+ # source://railties//lib/rails/application/default_middleware_stack.rb#5
1235
+ class Rails::Application::DefaultMiddlewareStack
1236
+ # @return [DefaultMiddlewareStack] a new instance of DefaultMiddlewareStack
1237
+ #
1238
+ # source://railties//lib/rails/application/default_middleware_stack.rb#8
1239
+ def initialize(app, config, paths); end
1240
+
1241
+ # Returns the value of attribute app.
1242
+ #
1243
+ # source://railties//lib/rails/application/default_middleware_stack.rb#6
1244
+ def app; end
1245
+
1246
+ # source://railties//lib/rails/application/default_middleware_stack.rb#14
1247
+ def build_stack; end
1248
+
1249
+ # Returns the value of attribute config.
1250
+ #
1251
+ # source://railties//lib/rails/application/default_middleware_stack.rb#6
1252
+ def config; end
1253
+
1254
+ # Returns the value of attribute paths.
1255
+ #
1256
+ # source://railties//lib/rails/application/default_middleware_stack.rb#6
1257
+ def paths; end
1258
+
1259
+ private
1260
+
1261
+ # source://railties//lib/rails/application/default_middleware_stack.rb#103
1262
+ def load_rack_cache; end
1263
+
1264
+ # source://railties//lib/rails/application/default_middleware_stack.rb#125
1265
+ def show_exceptions_app; end
1266
+ end
1267
+
1268
+ # source://railties//lib/rails/application/finisher.rb#10
1269
+ module Rails::Application::Finisher
1270
+ include ::Rails::Initializable
1271
+ extend ::Rails::Initializable::ClassMethods
1272
+ end
1273
+
1274
+ # source://railties//lib/rails/application/finisher.rb#104
1275
+ module Rails::Application::Finisher::InterlockHook
1276
+ class << self
1277
+ # source://railties//lib/rails/application/finisher.rb#109
1278
+ def complete(_state); end
1279
+
1280
+ # source://railties//lib/rails/application/finisher.rb#105
1281
+ def run; end
1282
+ end
1283
+ end
1284
+
1285
+ # source://railties//lib/rails/application/finisher.rb#90
1286
+ class Rails::Application::Finisher::MonitorHook
1287
+ # @return [MonitorHook] a new instance of MonitorHook
1288
+ #
1289
+ # source://railties//lib/rails/application/finisher.rb#91
1290
+ def initialize(monitor = T.unsafe(nil)); end
1291
+
1292
+ # source://railties//lib/rails/application/finisher.rb#99
1293
+ def complete(_state); end
1294
+
1295
+ # source://railties//lib/rails/application/finisher.rb#95
1296
+ def run; end
1297
+ end
1298
+
1299
+ # source://railties//lib/rails/application.rb#103
1300
+ Rails::Application::INITIAL_VARIABLES = T.let(T.unsafe(nil), Array)
1301
+
1302
+ # source://railties//lib/rails/application/routes_reloader.rb#7
1303
+ class Rails::Application::RoutesReloader
1304
+ include ::ActiveSupport::Callbacks
1305
+ extend ::ActiveSupport::Callbacks::ClassMethods
1306
+ extend ::ActiveSupport::DescendantsTracker
1307
+
1308
+ # @return [RoutesReloader] a new instance of RoutesReloader
1309
+ #
1310
+ # source://railties//lib/rails/application/routes_reloader.rb#15
1311
+ def initialize; end
1312
+
1313
+ # source://activesupport/7.0.4.3/lib/active_support/callbacks.rb#68
1314
+ def __callbacks; end
1315
+
1316
+ # source://activesupport/7.0.4.3/lib/active_support/callbacks.rb#68
1317
+ def __callbacks?; end
1318
+
1319
+ # Returns the value of attribute eager_load.
1320
+ #
1321
+ # source://railties//lib/rails/application/routes_reloader.rb#11
1322
+ def eager_load; end
1323
+
1324
+ # Sets the attribute eager_load
1325
+ #
1326
+ # @param value the value to set the attribute eager_load to.
1327
+ #
1328
+ # source://railties//lib/rails/application/routes_reloader.rb#11
1329
+ def eager_load=(_arg0); end
1330
+
1331
+ # source://railties//lib/rails/application/routes_reloader.rb#13
1332
+ def execute(*_arg0, **_arg1, &_arg2); end
1333
+
1334
+ # source://railties//lib/rails/application/routes_reloader.rb#13
1335
+ def execute_if_updated(*_arg0, **_arg1, &_arg2); end
1336
+
1337
+ # Returns the value of attribute external_routes.
1338
+ #
1339
+ # source://railties//lib/rails/application/routes_reloader.rb#10
1340
+ def external_routes; end
1341
+
1342
+ # Returns the value of attribute paths.
1343
+ #
1344
+ # source://railties//lib/rails/application/routes_reloader.rb#10
1345
+ def paths; end
1346
+
1347
+ # source://railties//lib/rails/application/routes_reloader.rb#22
1348
+ def reload!; end
1349
+
1350
+ # Returns the value of attribute route_sets.
1351
+ #
1352
+ # source://railties//lib/rails/application/routes_reloader.rb#10
1353
+ def route_sets; end
1354
+
1355
+ # source://railties//lib/rails/application/routes_reloader.rb#12
1356
+ def run_after_load_paths=(_arg0); end
1357
+
1358
+ # source://railties//lib/rails/application/routes_reloader.rb#13
1359
+ def updated?(*_arg0, **_arg1, &_arg2); end
1360
+
1361
+ private
1362
+
1363
+ # source://railties//lib/rails/application/routes_reloader.rb#42
1364
+ def clear!; end
1365
+
1366
+ # source://railties//lib/rails/application/routes_reloader.rb#58
1367
+ def finalize!; end
1368
+
1369
+ # source://railties//lib/rails/application/routes_reloader.rb#49
1370
+ def load_paths; end
1371
+
1372
+ # source://railties//lib/rails/application/routes_reloader.rb#62
1373
+ def revert; end
1374
+
1375
+ # source://railties//lib/rails/application/routes_reloader.rb#54
1376
+ def run_after_load_paths; end
1377
+
1378
+ # source://railties//lib/rails/application/routes_reloader.rb#32
1379
+ def updater; end
1380
+
1381
+ class << self
1382
+ # source://activesupport/7.0.4.3/lib/active_support/callbacks.rb#68
1383
+ def __callbacks; end
1384
+
1385
+ # source://activesupport/7.0.4.3/lib/active_support/callbacks.rb#68
1386
+ def __callbacks=(value); end
1387
+
1388
+ # source://activesupport/7.0.4.3/lib/active_support/callbacks.rb#68
1389
+ def __callbacks?; end
1390
+ end
1391
+ end
1392
+
1393
+ # source://railties//lib/rails/application_controller.rb#3
1394
+ class Rails::ApplicationController < ::ActionController::Base
1395
+ private
1396
+
1397
+ # source://actionview/7.0.4.3/lib/action_view/layouts.rb#328
1398
+ def _layout(lookup_context, formats); end
1399
+
1400
+ # source://railties//lib/rails/application_controller.rb#25
1401
+ def disable_content_security_policy_nonce!; end
1402
+
1403
+ # @return [Boolean]
1404
+ #
1405
+ # source://railties//lib/rails/application_controller.rb#21
1406
+ def local_request?; end
1407
+
1408
+ # source://railties//lib/rails/application_controller.rb#15
1409
+ def require_local!; end
1410
+
1411
+ class << self
1412
+ # source://activesupport/7.0.4.3/lib/active_support/callbacks.rb#68
1413
+ def __callbacks; end
1414
+
1415
+ # source://actionview/7.0.4.3/lib/action_view/layouts.rb#209
1416
+ def _layout; end
1417
+
1418
+ # source://actionview/7.0.4.3/lib/action_view/layouts.rb#210
1419
+ def _layout_conditions; end
1420
+
1421
+ # source://actionpack/7.0.4.3/lib/action_controller/metal.rb#210
1422
+ def middleware_stack; end
1423
+ end
1424
+ end
1425
+
1426
+ # source://railties//lib/rails/autoloaders.rb#4
1427
+ class Rails::Autoloaders
1428
+ include ::Enumerable
1429
+
1430
+ # @return [Autoloaders] a new instance of Autoloaders
1431
+ #
1432
+ # source://railties//lib/rails/autoloaders.rb#11
1433
+ def initialize; end
1434
+
1435
+ # @yield [main]
1436
+ #
1437
+ # source://railties//lib/rails/autoloaders.rb#31
1438
+ def each; end
1439
+
1440
+ # source://railties//lib/rails/autoloaders.rb#40
1441
+ def log!; end
1442
+
1443
+ # source://railties//lib/rails/autoloaders.rb#36
1444
+ def logger=(logger); end
1445
+
1446
+ # Returns the value of attribute main.
1447
+ #
1448
+ # source://railties//lib/rails/autoloaders.rb#9
1449
+ def main; end
1450
+
1451
+ # Returns the value of attribute once.
1452
+ #
1453
+ # source://railties//lib/rails/autoloaders.rb#9
1454
+ def once; end
1455
+
1456
+ # @return [Boolean]
1457
+ #
1458
+ # source://railties//lib/rails/autoloaders.rb#44
1459
+ def zeitwerk_enabled?; end
1460
+ end
1461
+
1462
+ # source://railties//lib/rails/autoloaders/inflector.rb#7
1463
+ module Rails::Autoloaders::Inflector
1464
+ class << self
1465
+ # source://railties//lib/rails/autoloaders/inflector.rb#12
1466
+ def camelize(basename, _abspath); end
1467
+
1468
+ # source://railties//lib/rails/autoloaders/inflector.rb#16
1469
+ def inflect(overrides); end
1470
+ end
1471
+ end
1472
+
1473
+ # source://railties//lib/rails/configuration.rb#9
1474
+ module Rails::Configuration; end
1475
+
1476
+ # source://railties//lib/rails/configuration.rb#104
1477
+ class Rails::Configuration::Generators
1478
+ # @return [Generators] a new instance of Generators
1479
+ #
1480
+ # source://railties//lib/rails/configuration.rb#108
1481
+ def initialize; end
1482
+
1483
+ # source://railties//lib/rails/configuration.rb#130
1484
+ def after_generate(&block); end
1485
+
1486
+ # Returns the value of attribute after_generate_callbacks.
1487
+ #
1488
+ # source://railties//lib/rails/configuration.rb#106
1489
+ def after_generate_callbacks; end
1490
+
1491
+ # Returns the value of attribute aliases.
1492
+ #
1493
+ # source://railties//lib/rails/configuration.rb#105
1494
+ def aliases; end
1495
+
1496
+ # Sets the attribute aliases
1497
+ #
1498
+ # @param value the value to set the attribute aliases to.
1499
+ #
1500
+ # source://railties//lib/rails/configuration.rb#105
1501
+ def aliases=(_arg0); end
1502
+
1503
+ # Returns the value of attribute api_only.
1504
+ #
1505
+ # source://railties//lib/rails/configuration.rb#105
1506
+ def api_only; end
1507
+
1508
+ # Sets the attribute api_only
1509
+ #
1510
+ # @param value the value to set the attribute api_only to.
1511
+ #
1512
+ # source://railties//lib/rails/configuration.rb#105
1513
+ def api_only=(_arg0); end
1514
+
1515
+ # Returns the value of attribute colorize_logging.
1516
+ #
1517
+ # source://railties//lib/rails/configuration.rb#105
1518
+ def colorize_logging; end
1519
+
1520
+ # Sets the attribute colorize_logging
1521
+ #
1522
+ # @param value the value to set the attribute colorize_logging to.
1523
+ #
1524
+ # source://railties//lib/rails/configuration.rb#105
1525
+ def colorize_logging=(_arg0); end
1526
+
1527
+ # Returns the value of attribute fallbacks.
1528
+ #
1529
+ # source://railties//lib/rails/configuration.rb#105
1530
+ def fallbacks; end
1531
+
1532
+ # Sets the attribute fallbacks
1533
+ #
1534
+ # @param value the value to set the attribute fallbacks to.
1535
+ #
1536
+ # source://railties//lib/rails/configuration.rb#105
1537
+ def fallbacks=(_arg0); end
1538
+
1539
+ # Returns the value of attribute hidden_namespaces.
1540
+ #
1541
+ # source://railties//lib/rails/configuration.rb#106
1542
+ def hidden_namespaces; end
1543
+
1544
+ # source://railties//lib/rails/configuration.rb#126
1545
+ def hide_namespace(namespace); end
1546
+
1547
+ # source://railties//lib/rails/configuration.rb#134
1548
+ def method_missing(method, *args); end
1549
+
1550
+ # Returns the value of attribute options.
1551
+ #
1552
+ # source://railties//lib/rails/configuration.rb#105
1553
+ def options; end
1554
+
1555
+ # Sets the attribute options
1556
+ #
1557
+ # @param value the value to set the attribute options to.
1558
+ #
1559
+ # source://railties//lib/rails/configuration.rb#105
1560
+ def options=(_arg0); end
1561
+
1562
+ # Returns the value of attribute templates.
1563
+ #
1564
+ # source://railties//lib/rails/configuration.rb#105
1565
+ def templates; end
1566
+
1567
+ # Sets the attribute templates
1568
+ #
1569
+ # @param value the value to set the attribute templates to.
1570
+ #
1571
+ # source://railties//lib/rails/configuration.rb#105
1572
+ def templates=(_arg0); end
1573
+
1574
+ private
1575
+
1576
+ # source://railties//lib/rails/configuration.rb#119
1577
+ def initialize_copy(source); end
1578
+ end
1579
+
1580
+ # MiddlewareStackProxy is a proxy for the Rails middleware stack that allows
1581
+ # you to configure middlewares in your application. It works basically as a
1582
+ # command recorder, saving each command to be applied after initialization
1583
+ # over the default middleware stack, so you can add, swap, or remove any
1584
+ # middleware in Rails.
1585
+ #
1586
+ # You can add your own middlewares by using the +config.middleware.use+ method:
1587
+ #
1588
+ # config.middleware.use Magical::Unicorns
1589
+ #
1590
+ # This will put the <tt>Magical::Unicorns</tt> middleware on the end of the stack.
1591
+ # You can use +insert_before+ if you wish to add a middleware before another:
1592
+ #
1593
+ # config.middleware.insert_before Rack::Head, Magical::Unicorns
1594
+ #
1595
+ # There's also +insert_after+ which will insert a middleware after another:
1596
+ #
1597
+ # config.middleware.insert_after Rack::Head, Magical::Unicorns
1598
+ #
1599
+ # Middlewares can also be completely swapped out and replaced with others:
1600
+ #
1601
+ # config.middleware.swap ActionDispatch::Flash, Magical::Unicorns
1602
+ #
1603
+ # Middlewares can be moved from one place to another:
1604
+ #
1605
+ # config.middleware.move_before ActionDispatch::Flash, Magical::Unicorns
1606
+ #
1607
+ # This will move the <tt>Magical::Unicorns</tt> middleware before the
1608
+ # <tt>ActionDispatch::Flash</tt>. You can also move it after:
1609
+ #
1610
+ # config.middleware.move_after ActionDispatch::Flash, Magical::Unicorns
1611
+ #
1612
+ # And finally they can also be removed from the stack completely:
1613
+ #
1614
+ # config.middleware.delete ActionDispatch::Flash
1615
+ #
1616
+ # source://railties//lib/rails/configuration.rb#46
1617
+ class Rails::Configuration::MiddlewareStackProxy
1618
+ # @return [MiddlewareStackProxy] a new instance of MiddlewareStackProxy
1619
+ #
1620
+ # source://railties//lib/rails/configuration.rb#47
1621
+ def initialize(operations = T.unsafe(nil), delete_operations = T.unsafe(nil)); end
1622
+
1623
+ # source://railties//lib/rails/configuration.rb#96
1624
+ def +(other); end
1625
+
1626
+ # source://railties//lib/rails/configuration.rb#70
1627
+ def delete(*_arg0, **_arg1, &_arg2); end
1628
+
1629
+ # source://railties//lib/rails/configuration.rb#52
1630
+ def insert(*_arg0, **_arg1, &_arg2); end
1631
+
1632
+ # source://railties//lib/rails/configuration.rb#58
1633
+ def insert_after(*_arg0, **_arg1, &_arg2); end
1634
+
1635
+ # source://railties//lib/rails/configuration.rb#52
1636
+ def insert_before(*_arg0, **_arg1, &_arg2); end
1637
+
1638
+ # source://railties//lib/rails/configuration.rb#88
1639
+ def merge_into(other); end
1640
+
1641
+ # source://railties//lib/rails/configuration.rb#74
1642
+ def move(*_arg0, **_arg1, &_arg2); end
1643
+
1644
+ # source://railties//lib/rails/configuration.rb#80
1645
+ def move_after(*_arg0, **_arg1, &_arg2); end
1646
+
1647
+ # source://railties//lib/rails/configuration.rb#74
1648
+ def move_before(*_arg0, **_arg1, &_arg2); end
1649
+
1650
+ # source://railties//lib/rails/configuration.rb#62
1651
+ def swap(*_arg0, **_arg1, &_arg2); end
1652
+
1653
+ # source://railties//lib/rails/configuration.rb#84
1654
+ def unshift(*_arg0, **_arg1, &_arg2); end
1655
+
1656
+ # source://railties//lib/rails/configuration.rb#66
1657
+ def use(*_arg0, **_arg1, &_arg2); end
1658
+
1659
+ protected
1660
+
1661
+ # Returns the value of attribute delete_operations.
1662
+ #
1663
+ # source://railties//lib/rails/configuration.rb#101
1664
+ def delete_operations; end
1665
+
1666
+ # Returns the value of attribute operations.
1667
+ #
1668
+ # source://railties//lib/rails/configuration.rb#101
1669
+ def operations; end
1670
+ end
1671
+
1672
+ # <tt>Rails::Engine</tt> allows you to wrap a specific Rails application or subset of
1673
+ # functionality and share it with other applications or within a larger packaged application.
1674
+ # Every Rails::Application is just an engine, which allows for simple
1675
+ # feature and application sharing.
1676
+ #
1677
+ # Any <tt>Rails::Engine</tt> is also a Rails::Railtie, so the same
1678
+ # methods (like <tt>rake_tasks</tt> and +generators+) and configuration
1679
+ # options that are available in railties can also be used in engines.
1680
+ #
1681
+ # == Creating an Engine
1682
+ #
1683
+ # If you want a gem to behave as an engine, you have to specify an +Engine+
1684
+ # for it somewhere inside your plugin's +lib+ folder (similar to how we
1685
+ # specify a +Railtie+):
1686
+ #
1687
+ # # lib/my_engine.rb
1688
+ # module MyEngine
1689
+ # class Engine < Rails::Engine
1690
+ # end
1691
+ # end
1692
+ #
1693
+ # Then ensure that this file is loaded at the top of your <tt>config/application.rb</tt>
1694
+ # (or in your +Gemfile+), and it will automatically load models, controllers, and helpers
1695
+ # inside +app+, load routes at <tt>config/routes.rb</tt>, load locales at
1696
+ # <tt>config/locales/**/*</tt>, and load tasks at <tt>lib/tasks/**/*</tt>.
1697
+ #
1698
+ # == Configuration
1699
+ #
1700
+ # Like railties, engines can access a config object which contains configuration shared by
1701
+ # all railties and the application.
1702
+ # Additionally, each engine can access <tt>autoload_paths</tt>, <tt>eager_load_paths</tt> and
1703
+ # <tt>autoload_once_paths</tt> settings which are scoped to that engine.
1704
+ #
1705
+ # class MyEngine < Rails::Engine
1706
+ # # Add a load path for this specific Engine
1707
+ # config.autoload_paths << File.expand_path("lib/some/path", __dir__)
1708
+ #
1709
+ # initializer "my_engine.add_middleware" do |app|
1710
+ # app.middleware.use MyEngine::Middleware
1711
+ # end
1712
+ # end
1713
+ #
1714
+ # == Generators
1715
+ #
1716
+ # You can set up generators for engines with <tt>config.generators</tt> method:
1717
+ #
1718
+ # class MyEngine < Rails::Engine
1719
+ # config.generators do |g|
1720
+ # g.orm :active_record
1721
+ # g.template_engine :erb
1722
+ # g.test_framework :test_unit
1723
+ # end
1724
+ # end
1725
+ #
1726
+ # You can also set generators for an application by using <tt>config.app_generators</tt>:
1727
+ #
1728
+ # class MyEngine < Rails::Engine
1729
+ # # note that you can also pass block to app_generators in the same way you
1730
+ # # can pass it to generators method
1731
+ # config.app_generators.orm :datamapper
1732
+ # end
1733
+ #
1734
+ # == Paths
1735
+ #
1736
+ # Applications and engines have flexible path configuration, meaning that you
1737
+ # are not required to place your controllers at <tt>app/controllers</tt>, but
1738
+ # in any place which you find convenient.
1739
+ #
1740
+ # For example, let's suppose you want to place your controllers in <tt>lib/controllers</tt>.
1741
+ # You can set that as an option:
1742
+ #
1743
+ # class MyEngine < Rails::Engine
1744
+ # paths["app/controllers"] = "lib/controllers"
1745
+ # end
1746
+ #
1747
+ # You can also have your controllers loaded from both <tt>app/controllers</tt> and
1748
+ # <tt>lib/controllers</tt>:
1749
+ #
1750
+ # class MyEngine < Rails::Engine
1751
+ # paths["app/controllers"] << "lib/controllers"
1752
+ # end
1753
+ #
1754
+ # The available paths in an engine are:
1755
+ #
1756
+ # class MyEngine < Rails::Engine
1757
+ # paths["app"] # => ["app"]
1758
+ # paths["app/controllers"] # => ["app/controllers"]
1759
+ # paths["app/helpers"] # => ["app/helpers"]
1760
+ # paths["app/models"] # => ["app/models"]
1761
+ # paths["app/views"] # => ["app/views"]
1762
+ # paths["lib"] # => ["lib"]
1763
+ # paths["lib/tasks"] # => ["lib/tasks"]
1764
+ # paths["config"] # => ["config"]
1765
+ # paths["config/initializers"] # => ["config/initializers"]
1766
+ # paths["config/locales"] # => ["config/locales"]
1767
+ # paths["config/routes.rb"] # => ["config/routes.rb"]
1768
+ # end
1769
+ #
1770
+ # The <tt>Application</tt> class adds a couple more paths to this set. And as in your
1771
+ # <tt>Application</tt>, all folders under +app+ are automatically added to the load path.
1772
+ # If you have an <tt>app/services</tt> folder for example, it will be added by default.
1773
+ #
1774
+ # == Endpoint
1775
+ #
1776
+ # An engine can also be a Rack application. It can be useful if you have a Rack application that
1777
+ # you would like to provide with some of the +Engine+'s features.
1778
+ #
1779
+ # To do that, use the +endpoint+ method:
1780
+ #
1781
+ # module MyEngine
1782
+ # class Engine < Rails::Engine
1783
+ # endpoint MyRackApplication
1784
+ # end
1785
+ # end
1786
+ #
1787
+ # Now you can mount your engine in application's routes:
1788
+ #
1789
+ # Rails.application.routes.draw do
1790
+ # mount MyEngine::Engine => "/engine"
1791
+ # end
1792
+ #
1793
+ # == Middleware stack
1794
+ #
1795
+ # As an engine can now be a Rack endpoint, it can also have a middleware
1796
+ # stack. The usage is exactly the same as in <tt>Application</tt>:
1797
+ #
1798
+ # module MyEngine
1799
+ # class Engine < Rails::Engine
1800
+ # middleware.use SomeMiddleware
1801
+ # end
1802
+ # end
1803
+ #
1804
+ # == Routes
1805
+ #
1806
+ # If you don't specify an endpoint, routes will be used as the default
1807
+ # endpoint. You can use them just like you use an application's routes:
1808
+ #
1809
+ # # ENGINE/config/routes.rb
1810
+ # MyEngine::Engine.routes.draw do
1811
+ # get "/" => "posts#index"
1812
+ # end
1813
+ #
1814
+ # == Mount priority
1815
+ #
1816
+ # Note that now there can be more than one router in your application, and it's better to avoid
1817
+ # passing requests through many routers. Consider this situation:
1818
+ #
1819
+ # Rails.application.routes.draw do
1820
+ # mount MyEngine::Engine => "/blog"
1821
+ # get "/blog/omg" => "main#omg"
1822
+ # end
1823
+ #
1824
+ # +MyEngine+ is mounted at <tt>/blog</tt>, and <tt>/blog/omg</tt> points to application's
1825
+ # controller. In such a situation, requests to <tt>/blog/omg</tt> will go through +MyEngine+,
1826
+ # and if there is no such route in +Engine+'s routes, it will be dispatched to <tt>main#omg</tt>.
1827
+ # It's much better to swap that:
1828
+ #
1829
+ # Rails.application.routes.draw do
1830
+ # get "/blog/omg" => "main#omg"
1831
+ # mount MyEngine::Engine => "/blog"
1832
+ # end
1833
+ #
1834
+ # Now, +Engine+ will get only requests that were not handled by +Application+.
1835
+ #
1836
+ # == Engine name
1837
+ #
1838
+ # There are some places where an Engine's name is used:
1839
+ #
1840
+ # * routes: when you mount an Engine with <tt>mount(MyEngine::Engine => '/my_engine')</tt>,
1841
+ # it's used as default <tt>:as</tt> option
1842
+ # * rake task for installing migrations <tt>my_engine:install:migrations</tt>
1843
+ #
1844
+ # Engine name is set by default based on class name. For <tt>MyEngine::Engine</tt> it will be
1845
+ # <tt>my_engine_engine</tt>. You can change it manually using the <tt>engine_name</tt> method:
1846
+ #
1847
+ # module MyEngine
1848
+ # class Engine < Rails::Engine
1849
+ # engine_name "my_engine"
1850
+ # end
1851
+ # end
1852
+ #
1853
+ # == Isolated Engine
1854
+ #
1855
+ # Normally when you create controllers, helpers, and models inside an engine, they are treated
1856
+ # as if they were created inside the application itself. This means that all helpers and
1857
+ # named routes from the application will be available to your engine's controllers as well.
1858
+ #
1859
+ # However, sometimes you want to isolate your engine from the application, especially if your engine
1860
+ # has its own router. To do that, you simply need to call +isolate_namespace+. This method requires
1861
+ # you to pass a module where all your controllers, helpers, and models should be nested to:
1862
+ #
1863
+ # module MyEngine
1864
+ # class Engine < Rails::Engine
1865
+ # isolate_namespace MyEngine
1866
+ # end
1867
+ # end
1868
+ #
1869
+ # With such an engine, everything that is inside the +MyEngine+ module will be isolated from
1870
+ # the application.
1871
+ #
1872
+ # Consider this controller:
1873
+ #
1874
+ # module MyEngine
1875
+ # class FooController < ActionController::Base
1876
+ # end
1877
+ # end
1878
+ #
1879
+ # If the +MyEngine+ engine is marked as isolated, +FooController+ only has
1880
+ # access to helpers from +MyEngine+, and <tt>url_helpers</tt> from
1881
+ # <tt>MyEngine::Engine.routes</tt>.
1882
+ #
1883
+ # The next thing that changes in isolated engines is the behavior of routes.
1884
+ # Normally, when you namespace your controllers, you also need to namespace
1885
+ # the related routes. With an isolated engine, the engine's namespace is
1886
+ # automatically applied, so you don't need to specify it explicitly in your
1887
+ # routes:
1888
+ #
1889
+ # MyEngine::Engine.routes.draw do
1890
+ # resources :articles
1891
+ # end
1892
+ #
1893
+ # If +MyEngine+ is isolated, the routes above will point to
1894
+ # <tt>MyEngine::ArticlesController</tt>. You also don't need to use longer
1895
+ # URL helpers like +my_engine_articles_path+. Instead, you should simply use
1896
+ # +articles_path+, like you would do with your main application.
1897
+ #
1898
+ # To make this behavior consistent with other parts of the framework,
1899
+ # isolated engines also have an effect on ActiveModel::Naming. In a
1900
+ # normal Rails app, when you use a namespaced model such as
1901
+ # <tt>Namespace::Article</tt>, ActiveModel::Naming will generate
1902
+ # names with the prefix "namespace". In an isolated engine, the prefix will
1903
+ # be omitted in URL helpers and form fields, for convenience.
1904
+ #
1905
+ # polymorphic_url(MyEngine::Article.new)
1906
+ # # => "articles_path" # not "my_engine_articles_path"
1907
+ #
1908
+ # form_for(MyEngine::Article.new) do
1909
+ # text_field :title # => <input type="text" name="article[title]" id="article_title" />
1910
+ # end
1911
+ #
1912
+ # Additionally, an isolated engine will set its own name according to its
1913
+ # namespace, so <tt>MyEngine::Engine.engine_name</tt> will return
1914
+ # "my_engine". It will also set +MyEngine.table_name_prefix+ to "my_engine_",
1915
+ # meaning for example that <tt>MyEngine::Article</tt> will use the
1916
+ # +my_engine_articles+ database table by default.
1917
+ #
1918
+ # == Using Engine's routes outside Engine
1919
+ #
1920
+ # Since you can now mount an engine inside application's routes, you do not have direct access to +Engine+'s
1921
+ # <tt>url_helpers</tt> inside +Application+. When you mount an engine in an application's routes, a special helper is
1922
+ # created to allow you to do that. Consider such a scenario:
1923
+ #
1924
+ # # config/routes.rb
1925
+ # Rails.application.routes.draw do
1926
+ # mount MyEngine::Engine => "/my_engine", as: "my_engine"
1927
+ # get "/foo" => "foo#index"
1928
+ # end
1929
+ #
1930
+ # Now, you can use the <tt>my_engine</tt> helper inside your application:
1931
+ #
1932
+ # class FooController < ApplicationController
1933
+ # def index
1934
+ # my_engine.root_url # => /my_engine/
1935
+ # end
1936
+ # end
1937
+ #
1938
+ # There is also a <tt>main_app</tt> helper that gives you access to application's routes inside Engine:
1939
+ #
1940
+ # module MyEngine
1941
+ # class BarController
1942
+ # def index
1943
+ # main_app.foo_path # => /foo
1944
+ # end
1945
+ # end
1946
+ # end
1947
+ #
1948
+ # Note that the <tt>:as</tt> option given to mount takes the <tt>engine_name</tt> as default, so most of the time
1949
+ # you can simply omit it.
1950
+ #
1951
+ # Finally, if you want to generate a URL to an engine's route using
1952
+ # <tt>polymorphic_url</tt>, you also need to pass the engine helper. Let's
1953
+ # say that you want to create a form pointing to one of the engine's routes.
1954
+ # All you need to do is pass the helper as the first element in array with
1955
+ # attributes for URL:
1956
+ #
1957
+ # form_for([my_engine, @user])
1958
+ #
1959
+ # This code will use <tt>my_engine.user_path(@user)</tt> to generate the proper route.
1960
+ #
1961
+ # == Isolated engine's helpers
1962
+ #
1963
+ # Sometimes you may want to isolate engine, but use helpers that are defined for it.
1964
+ # If you want to share just a few specific helpers you can add them to application's
1965
+ # helpers in ApplicationController:
1966
+ #
1967
+ # class ApplicationController < ActionController::Base
1968
+ # helper MyEngine::SharedEngineHelper
1969
+ # end
1970
+ #
1971
+ # If you want to include all of the engine's helpers, you can use the #helper method on an engine's
1972
+ # instance:
1973
+ #
1974
+ # class ApplicationController < ActionController::Base
1975
+ # helper MyEngine::Engine.helpers
1976
+ # end
1977
+ #
1978
+ # It will include all of the helpers from engine's directory. Take into account this does
1979
+ # not include helpers defined in controllers with helper_method or other similar solutions,
1980
+ # only helpers defined in the helpers directory will be included.
1981
+ #
1982
+ # == Migrations & seed data
1983
+ #
1984
+ # Engines can have their own migrations. The default path for migrations is exactly the same
1985
+ # as in application: <tt>db/migrate</tt>
1986
+ #
1987
+ # To use engine's migrations in application you can use the rake task below, which copies them to
1988
+ # application's dir:
1989
+ #
1990
+ # rake ENGINE_NAME:install:migrations
1991
+ #
1992
+ # Note that some of the migrations may be skipped if a migration with the same name already exists
1993
+ # in application. In such a situation you must decide whether to leave that migration or rename the
1994
+ # migration in the application and rerun copying migrations.
1995
+ #
1996
+ # If your engine has migrations, you may also want to prepare data for the database in
1997
+ # the <tt>db/seeds.rb</tt> file. You can load that data using the <tt>load_seed</tt> method, e.g.
1998
+ #
1999
+ # MyEngine::Engine.load_seed
2000
+ #
2001
+ # == Loading priority
2002
+ #
2003
+ # In order to change engine's priority you can use +config.railties_order+ in the main application.
2004
+ # It will affect the priority of loading views, helpers, assets, and all the other files
2005
+ # related to engine or application.
2006
+ #
2007
+ # # load Blog::Engine with highest priority, followed by application and other railties
2008
+ # config.railties_order = [Blog::Engine, :main_app, :all]
2009
+ #
2010
+ # source://railties//lib/rails/engine/railties.rb#4
2011
+ class Rails::Engine < ::Rails::Railtie
2012
+ include ::ActiveSupport::Callbacks
2013
+ extend ::ActiveSupport::Callbacks::ClassMethods
2014
+
2015
+ # @return [Engine] a new instance of Engine
2016
+ #
2017
+ # source://railties//lib/rails/engine.rb#432
2018
+ def initialize; end
2019
+
2020
+ # source://activesupport/7.0.4.3/lib/active_support/callbacks.rb#68
2021
+ def __callbacks; end
2022
+
2023
+ # source://activesupport/7.0.4.3/lib/active_support/callbacks.rb#68
2024
+ def __callbacks?; end
2025
+
2026
+ # source://activesupport/7.0.4.3/lib/active_support/callbacks.rb#940
2027
+ def _load_seed_callbacks; end
2028
+
2029
+ # source://activesupport/7.0.4.3/lib/active_support/callbacks.rb#928
2030
+ def _run_load_seed_callbacks(&block); end
2031
+
2032
+ # Returns the underlying Rack application for this engine.
2033
+ #
2034
+ # source://railties//lib/rails/engine.rb#511
2035
+ def app; end
2036
+
2037
+ # Define the Rack API for this engine.
2038
+ #
2039
+ # source://railties//lib/rails/engine.rb#528
2040
+ def call(env); end
2041
+
2042
+ # Define the configuration object for the engine.
2043
+ #
2044
+ # source://railties//lib/rails/engine.rb#547
2045
+ def config; end
2046
+
2047
+ # source://railties//lib/rails/engine.rb#484
2048
+ def eager_load!; end
2049
+
2050
+ # Returns the endpoint for this engine. If none is registered,
2051
+ # defaults to an ActionDispatch::Routing::RouteSet.
2052
+ #
2053
+ # source://railties//lib/rails/engine.rb#523
2054
+ def endpoint; end
2055
+
2056
+ # source://railties//lib/rails/engine.rb#430
2057
+ def engine_name(*_arg0, **_arg1, &_arg2); end
2058
+
2059
+ # Defines additional Rack env configuration that is added on each call.
2060
+ #
2061
+ # source://railties//lib/rails/engine.rb#534
2062
+ def env_config; end
2063
+
2064
+ # Returns a module with all the helpers defined for the engine.
2065
+ #
2066
+ # source://railties//lib/rails/engine.rb#494
2067
+ def helpers; end
2068
+
2069
+ # Returns all registered helpers paths.
2070
+ #
2071
+ # source://railties//lib/rails/engine.rb#506
2072
+ def helpers_paths; end
2073
+
2074
+ # source://railties//lib/rails/engine.rb#430
2075
+ def isolated?(*_arg0, **_arg1, &_arg2); end
2076
+
2077
+ # Load console and invoke the registered hooks.
2078
+ # Check Rails::Railtie.console for more info.
2079
+ #
2080
+ # source://railties//lib/rails/engine.rb#446
2081
+ def load_console(app = T.unsafe(nil)); end
2082
+
2083
+ # Load Rails generators and invoke the registered hooks.
2084
+ # Check Rails::Railtie.generators for more info.
2085
+ #
2086
+ # source://railties//lib/rails/engine.rb#470
2087
+ def load_generators(app = T.unsafe(nil)); end
2088
+
2089
+ # Load Rails runner and invoke the registered hooks.
2090
+ # Check Rails::Railtie.runner for more info.
2091
+ #
2092
+ # source://railties//lib/rails/engine.rb#455
2093
+ def load_runner(app = T.unsafe(nil)); end
2094
+
2095
+ # Load data from db/seeds.rb file. It can be used in to load engines'
2096
+ # seeds, e.g.:
2097
+ #
2098
+ # Blog::Engine.load_seed
2099
+ #
2100
+ # source://railties//lib/rails/engine.rb#555
2101
+ def load_seed; end
2102
+
2103
+ # Invoke the server registered hooks.
2104
+ # Check Rails::Railtie.server for more info.
2105
+ #
2106
+ # source://railties//lib/rails/engine.rb#479
2107
+ def load_server(app = T.unsafe(nil)); end
2108
+
2109
+ # Load Rake and railties tasks, and invoke the registered hooks.
2110
+ # Check Rails::Railtie.rake_tasks for more info.
2111
+ #
2112
+ # source://railties//lib/rails/engine.rb#462
2113
+ def load_tasks(app = T.unsafe(nil)); end
2114
+
2115
+ # source://railties//lib/rails/engine.rb#429
2116
+ def middleware(*_arg0, **_arg1, &_arg2); end
2117
+
2118
+ # source://railties//lib/rails/engine.rb#429
2119
+ def paths(*_arg0, **_arg1, &_arg2); end
2120
+
2121
+ # source://railties//lib/rails/engine.rb#489
2122
+ def railties; end
2123
+
2124
+ # source://railties//lib/rails/engine.rb#429
2125
+ def root(*_arg0, **_arg1, &_arg2); end
2126
+
2127
+ # Defines the routes for this engine. If a block is given to
2128
+ # routes, it is appended to the engine.
2129
+ #
2130
+ # source://railties//lib/rails/engine.rb#540
2131
+ def routes(&block); end
2132
+
2133
+ # @return [Boolean]
2134
+ #
2135
+ # source://railties//lib/rails/engine.rb#654
2136
+ def routes?; end
2137
+
2138
+ protected
2139
+
2140
+ # source://railties//lib/rails/engine.rb#659
2141
+ def run_tasks_blocks(*_arg0); end
2142
+
2143
+ private
2144
+
2145
+ # source://railties//lib/rails/engine.rb#691
2146
+ def _all_autoload_once_paths; end
2147
+
2148
+ # source://railties//lib/rails/engine.rb#695
2149
+ def _all_autoload_paths; end
2150
+
2151
+ # source://railties//lib/rails/engine.rb#704
2152
+ def _all_load_paths(add_autoload_paths_to_load_path); end
2153
+
2154
+ # source://railties//lib/rails/engine.rb#723
2155
+ def build_middleware; end
2156
+
2157
+ # source://railties//lib/rails/engine.rb#715
2158
+ def build_request(env); end
2159
+
2160
+ # source://railties//lib/rails/engine.rb#687
2161
+ def default_middleware_stack; end
2162
+
2163
+ # @return [Boolean]
2164
+ #
2165
+ # source://railties//lib/rails/engine.rb#671
2166
+ def has_migrations?; end
2167
+
2168
+ # source://railties//lib/rails/engine.rb#665
2169
+ def load_config_initializer(initializer); end
2170
+
2171
+ class << self
2172
+ # source://activesupport/7.0.4.3/lib/active_support/callbacks.rb#68
2173
+ def __callbacks; end
2174
+
2175
+ # source://activesupport/7.0.4.3/lib/active_support/callbacks.rb#68
2176
+ def __callbacks=(value); end
2177
+
2178
+ # source://activesupport/7.0.4.3/lib/active_support/callbacks.rb#68
2179
+ def __callbacks?; end
2180
+
2181
+ # source://activesupport/7.0.4.3/lib/active_support/callbacks.rb#932
2182
+ def _load_seed_callbacks; end
2183
+
2184
+ # source://activesupport/7.0.4.3/lib/active_support/callbacks.rb#936
2185
+ def _load_seed_callbacks=(value); end
2186
+
2187
+ # Returns the value of attribute called_from.
2188
+ #
2189
+ # source://railties//lib/rails/engine.rb#353
2190
+ def called_from; end
2191
+
2192
+ # Sets the attribute called_from
2193
+ #
2194
+ # @param value the value to set the attribute called_from to.
2195
+ #
2196
+ # source://railties//lib/rails/engine.rb#353
2197
+ def called_from=(_arg0); end
2198
+
2199
+ # source://railties//lib/rails/engine.rb#358
2200
+ def eager_load!(*_arg0, **_arg1, &_arg2); end
2201
+
2202
+ # source://railties//lib/rails/engine.rb#378
2203
+ def endpoint(endpoint = T.unsafe(nil)); end
2204
+
2205
+ # source://railties//lib/rails/railtie.rb#176
2206
+ def engine_name(name = T.unsafe(nil)); end
2207
+
2208
+ # Finds engine with given path.
2209
+ #
2210
+ # source://railties//lib/rails/engine.rb#416
2211
+ def find(path); end
2212
+
2213
+ # source://railties//lib/rails/engine.rb#374
2214
+ def find_root(from); end
2215
+
2216
+ # source://railties//lib/rails/engine.rb#675
2217
+ def find_root_with_flag(flag, root_path, default = T.unsafe(nil)); end
2218
+
2219
+ # @private
2220
+ #
2221
+ # source://railties//lib/rails/engine.rb#360
2222
+ def inherited(base); end
2223
+
2224
+ # source://railties//lib/rails/engine.rb#384
2225
+ def isolate_namespace(mod); end
2226
+
2227
+ # Returns the value of attribute isolated.
2228
+ #
2229
+ # source://railties//lib/rails/engine.rb#353
2230
+ def isolated; end
2231
+
2232
+ # Sets the attribute isolated
2233
+ #
2234
+ # @param value the value to set the attribute isolated to.
2235
+ #
2236
+ # source://railties//lib/rails/engine.rb#353
2237
+ def isolated=(_arg0); end
2238
+
2239
+ # Returns the value of attribute isolated.
2240
+ #
2241
+ # source://railties//lib/rails/engine.rb#353
2242
+ def isolated?; end
2243
+ end
2244
+ end
2245
+
2246
+ # source://railties//lib/rails/engine/configuration.rb#7
2247
+ class Rails::Engine::Configuration < ::Rails::Railtie::Configuration
2248
+ # @return [Configuration] a new instance of Configuration
2249
+ #
2250
+ # source://railties//lib/rails/engine/configuration.rb#12
2251
+ def initialize(root = T.unsafe(nil)); end
2252
+
2253
+ # source://railties//lib/rails/engine/configuration.rb#83
2254
+ def autoload_once_paths; end
2255
+
2256
+ # Sets the attribute autoload_once_paths
2257
+ #
2258
+ # @param value the value to set the attribute autoload_once_paths to.
2259
+ #
2260
+ # source://railties//lib/rails/engine/configuration.rb#10
2261
+ def autoload_once_paths=(_arg0); end
2262
+
2263
+ # source://railties//lib/rails/engine/configuration.rb#87
2264
+ def autoload_paths; end
2265
+
2266
+ # Sets the attribute autoload_paths
2267
+ #
2268
+ # @param value the value to set the attribute autoload_paths to.
2269
+ #
2270
+ # source://railties//lib/rails/engine/configuration.rb#10
2271
+ def autoload_paths=(_arg0); end
2272
+
2273
+ # source://railties//lib/rails/engine/configuration.rb#79
2274
+ def eager_load_paths; end
2275
+
2276
+ # Sets the attribute eager_load_paths
2277
+ #
2278
+ # @param value the value to set the attribute eager_load_paths to.
2279
+ #
2280
+ # source://railties//lib/rails/engine/configuration.rb#10
2281
+ def eager_load_paths=(_arg0); end
2282
+
2283
+ # Holds generators configuration:
2284
+ #
2285
+ # config.generators do |g|
2286
+ # g.orm :data_mapper, migration: true
2287
+ # g.template_engine :haml
2288
+ # g.test_framework :rspec
2289
+ # end
2290
+ #
2291
+ # If you want to disable color in console, do:
2292
+ #
2293
+ # config.generators.colorize_logging = false
2294
+ #
2295
+ # @yield [@generators]
2296
+ #
2297
+ # source://railties//lib/rails/engine/configuration.rb#32
2298
+ def generators; end
2299
+
2300
+ # Returns the value of attribute javascript_path.
2301
+ #
2302
+ # source://railties//lib/rails/engine/configuration.rb#9
2303
+ def javascript_path; end
2304
+
2305
+ # Sets the attribute javascript_path
2306
+ #
2307
+ # @param value the value to set the attribute javascript_path to.
2308
+ #
2309
+ # source://railties//lib/rails/engine/configuration.rb#9
2310
+ def javascript_path=(_arg0); end
2311
+
2312
+ # Returns the value of attribute middleware.
2313
+ #
2314
+ # source://railties//lib/rails/engine/configuration.rb#9
2315
+ def middleware; end
2316
+
2317
+ # Sets the attribute middleware
2318
+ #
2319
+ # @param value the value to set the attribute middleware to.
2320
+ #
2321
+ # source://railties//lib/rails/engine/configuration.rb#9
2322
+ def middleware=(_arg0); end
2323
+
2324
+ # source://railties//lib/rails/engine/configuration.rb#38
2325
+ def paths; end
2326
+
2327
+ # Returns the value of attribute root.
2328
+ #
2329
+ # source://railties//lib/rails/engine/configuration.rb#8
2330
+ def root; end
2331
+
2332
+ # source://railties//lib/rails/engine/configuration.rb#75
2333
+ def root=(value); end
2334
+ end
2335
+
2336
+ # source://railties//lib/rails/engine/railties.rb#5
2337
+ class Rails::Engine::Railties
2338
+ include ::Enumerable
2339
+
2340
+ # @return [Railties] a new instance of Railties
2341
+ #
2342
+ # source://railties//lib/rails/engine/railties.rb#9
2343
+ def initialize; end
2344
+
2345
+ # source://railties//lib/rails/engine/railties.rb#18
2346
+ def -(others); end
2347
+
2348
+ # Returns the value of attribute _all.
2349
+ #
2350
+ # source://railties//lib/rails/engine/railties.rb#7
2351
+ def _all; end
2352
+
2353
+ # source://railties//lib/rails/engine/railties.rb#14
2354
+ def each(*args, &block); end
2355
+ end
2356
+
2357
+ # source://railties//lib/rails/generators/actions.rb#8
2358
+ module Rails::Generators; end
2359
+
2360
+ # source://railties//lib/rails/generators/actions.rb#9
2361
+ module Rails::Generators::Actions
2362
+ # source://railties//lib/rails/generators/actions.rb#10
2363
+ def initialize(*_arg0); end
2364
+
2365
+ # Add the given source to +Gemfile+
2366
+ #
2367
+ # If block is given, gem entries in block are wrapped into the source group.
2368
+ #
2369
+ # add_source "http://gems.github.com/"
2370
+ #
2371
+ # add_source "http://gems.github.com/" do
2372
+ # gem "rspec-rails"
2373
+ # end
2374
+ #
2375
+ # source://railties//lib/rails/generators/actions.rb#106
2376
+ def add_source(source, options = T.unsafe(nil), &block); end
2377
+
2378
+ # Adds a line inside the Application class for <tt>config/application.rb</tt>.
2379
+ #
2380
+ # If options <tt>:env</tt> is specified, the line is appended to the corresponding
2381
+ # file in <tt>config/environments</tt>.
2382
+ #
2383
+ # environment do
2384
+ # "config.asset_host = 'cdn.provider.com'"
2385
+ # end
2386
+ #
2387
+ # environment(nil, env: "development") do
2388
+ # "config.asset_host = 'localhost:3000'"
2389
+ # end
2390
+ #
2391
+ # source://railties//lib/rails/generators/actions.rb#132
2392
+ def application(data = T.unsafe(nil), options = T.unsafe(nil)); end
2393
+
2394
+ # Adds a line inside the Application class for <tt>config/application.rb</tt>.
2395
+ #
2396
+ # If options <tt>:env</tt> is specified, the line is appended to the corresponding
2397
+ # file in <tt>config/environments</tt>.
2398
+ #
2399
+ # environment do
2400
+ # "config.asset_host = 'cdn.provider.com'"
2401
+ # end
2402
+ #
2403
+ # environment(nil, env: "development") do
2404
+ # "config.asset_host = 'localhost:3000'"
2405
+ # end
2406
+ #
2407
+ # source://railties//lib/rails/generators/actions.rb#132
2408
+ def environment(data = T.unsafe(nil), options = T.unsafe(nil)); end
2409
+
2410
+ # Adds an entry into +Gemfile+ for the supplied gem.
2411
+ #
2412
+ # gem "rspec", group: :test
2413
+ # gem "technoweenie-restful-authentication", lib: "restful-authentication", source: "http://gems.github.com/"
2414
+ # gem "rails", "3.0", git: "https://github.com/rails/rails"
2415
+ # gem "RedCloth", ">= 4.1.0", "< 4.2.0"
2416
+ # gem "rspec", comment: "Put this comment above the gem declaration"
2417
+ #
2418
+ # source://railties//lib/rails/generators/actions.rb#22
2419
+ def gem(*args); end
2420
+
2421
+ # Wraps gem entries inside a group.
2422
+ #
2423
+ # gem_group :development, :test do
2424
+ # gem "rspec-rails"
2425
+ # end
2426
+ #
2427
+ # source://railties//lib/rails/generators/actions.rb#66
2428
+ def gem_group(*names, &block); end
2429
+
2430
+ # Generate something using a generator from Rails or a plugin.
2431
+ # The second parameter is the argument string that is passed to
2432
+ # the generator or an Array that is joined.
2433
+ #
2434
+ # generate(:authenticated, "user session")
2435
+ #
2436
+ # source://railties//lib/rails/generators/actions.rb#238
2437
+ def generate(what, *args); end
2438
+
2439
+ # Run a command in git.
2440
+ #
2441
+ # git :init
2442
+ # git add: "this.file that.rb"
2443
+ # git add: "onefile.rb", rm: "badfile.cxx"
2444
+ #
2445
+ # source://railties//lib/rails/generators/actions.rb#154
2446
+ def git(commands = T.unsafe(nil)); end
2447
+
2448
+ # source://railties//lib/rails/generators/actions.rb#80
2449
+ def github(repo, options = T.unsafe(nil), &block); end
2450
+
2451
+ # Create a new initializer with the provided code (either in a block or a string).
2452
+ #
2453
+ # initializer("globals.rb") do
2454
+ # data = ""
2455
+ #
2456
+ # ['MY_WORK', 'ADMINS', 'BEST_COMPANY_EVAR'].each do |const|
2457
+ # data << "#{const} = :entp\n"
2458
+ # end
2459
+ #
2460
+ # data
2461
+ # end
2462
+ #
2463
+ # initializer("api.rb", "API_KEY = '123456'")
2464
+ #
2465
+ # source://railties//lib/rails/generators/actions.rb#227
2466
+ def initializer(filename, data = T.unsafe(nil)); end
2467
+
2468
+ # Create a new file in the <tt>lib/</tt> directory. Code can be specified
2469
+ # in a block or a data string can be given.
2470
+ #
2471
+ # lib("crypto.rb") do
2472
+ # "crypted_special_value = '#{rand}--#{Time.now}--#{rand(1337)}--'"
2473
+ # end
2474
+ #
2475
+ # lib("foreign.rb", "# Foreign code is fun")
2476
+ #
2477
+ # source://railties//lib/rails/generators/actions.rb#187
2478
+ def lib(filename, data = T.unsafe(nil)); end
2479
+
2480
+ # Runs the supplied rake task (invoked with 'rails ...')
2481
+ #
2482
+ # rails_command("db:migrate")
2483
+ # rails_command("db:migrate", env: "production")
2484
+ # rails_command("gems:install", sudo: true)
2485
+ # rails_command("gems:install", capture: true)
2486
+ #
2487
+ # source://railties//lib/rails/generators/actions.rb#263
2488
+ def rails_command(command, options = T.unsafe(nil)); end
2489
+
2490
+ # Runs the supplied rake task (invoked with 'rake ...')
2491
+ #
2492
+ # rake("db:migrate")
2493
+ # rake("db:migrate", env: "production")
2494
+ # rake("gems:install", sudo: true)
2495
+ # rake("gems:install", capture: true)
2496
+ #
2497
+ # source://railties//lib/rails/generators/actions.rb#253
2498
+ def rake(command, options = T.unsafe(nil)); end
2499
+
2500
+ # Create a new +Rakefile+ with the provided code (either in a block or a string).
2501
+ #
2502
+ # rakefile("bootstrap.rake") do
2503
+ # project = ask("What is the UNIX name of your project?")
2504
+ #
2505
+ # <<-TASK
2506
+ # namespace :#{project} do
2507
+ # task :bootstrap do
2508
+ # puts "I like boots!"
2509
+ # end
2510
+ # end
2511
+ # TASK
2512
+ # end
2513
+ #
2514
+ # rakefile('seed.rake', 'puts "Planting seeds"')
2515
+ #
2516
+ # source://railties//lib/rails/generators/actions.rb#208
2517
+ def rakefile(filename, data = T.unsafe(nil)); end
2518
+
2519
+ # Reads the given file at the source root and prints it in the console.
2520
+ #
2521
+ # readme "README"
2522
+ #
2523
+ # source://railties//lib/rails/generators/actions.rb#314
2524
+ def readme(path); end
2525
+
2526
+ # Make an entry in Rails routing file <tt>config/routes.rb</tt>
2527
+ #
2528
+ # route "root 'welcome#index'"
2529
+ # route "root 'admin#index'", namespace: :admin
2530
+ #
2531
+ # source://railties//lib/rails/generators/actions.rb#281
2532
+ def route(routing_code, namespace: T.unsafe(nil)); end
2533
+
2534
+ # Create a new file in the <tt>vendor/</tt> directory. Code can be specified
2535
+ # in a block or a data string can be given.
2536
+ #
2537
+ # vendor("sekrit.rb") do
2538
+ # sekrit_salt = "#{Time.now}--#{3.years.ago}--#{rand}--"
2539
+ # "salt = '#{sekrit_salt}'"
2540
+ # end
2541
+ #
2542
+ # vendor("foreign.rb", "# Foreign code is fun")
2543
+ #
2544
+ # source://railties//lib/rails/generators/actions.rb#173
2545
+ def vendor(filename, data = T.unsafe(nil)); end
2546
+
2547
+ private
2548
+
2549
+ # Append string to a file with a newline if necessary
2550
+ #
2551
+ # source://railties//lib/rails/generators/actions.rb#388
2552
+ def append_file_with_newline(path, str, options = T.unsafe(nil)); end
2553
+
2554
+ # Runs the supplied command using either "rake ..." or "rails ..."
2555
+ # based on the executor parameter provided.
2556
+ #
2557
+ # source://railties//lib/rails/generators/actions.rb#333
2558
+ def execute_command(executor, command, options = T.unsafe(nil)); end
2559
+
2560
+ # Add an extension to the given name based on the platform.
2561
+ #
2562
+ # source://railties//lib/rails/generators/actions.rb#347
2563
+ def extify(name); end
2564
+
2565
+ # Indent the +Gemfile+ to the depth of @indentation
2566
+ #
2567
+ # source://railties//lib/rails/generators/actions.rb#375
2568
+ def indentation; end
2569
+
2570
+ # Define log for backwards compatibility. If just one argument is sent,
2571
+ # invoke say, otherwise invoke say_status. Differently from say and
2572
+ # similarly to say_status, this method respects the quiet? option given.
2573
+ #
2574
+ # source://railties//lib/rails/generators/actions.rb#322
2575
+ def log(*args); end
2576
+
2577
+ # source://railties//lib/rails/generators/actions.rb#394
2578
+ def match_file(path, pattern); end
2579
+
2580
+ # Returns optimized string with indentation
2581
+ #
2582
+ # source://railties//lib/rails/generators/actions.rb#368
2583
+ def optimize_indentation(value, amount = T.unsafe(nil)); end
2584
+
2585
+ # Always returns value in double quotes.
2586
+ #
2587
+ # source://railties//lib/rails/generators/actions.rb#356
2588
+ def quote(value); end
2589
+
2590
+ # Returns optimized string with indentation
2591
+ #
2592
+ # source://railties//lib/rails/generators/actions.rb#368
2593
+ def rebase_indentation(value, amount = T.unsafe(nil)); end
2594
+
2595
+ # source://railties//lib/rails/generators/actions.rb#398
2596
+ def route_namespace_pattern(namespace); end
2597
+
2598
+ # Manage +Gemfile+ indentation for a DSL action block
2599
+ #
2600
+ # source://railties//lib/rails/generators/actions.rb#380
2601
+ def with_indentation(&block); end
2602
+ end
2603
+
2604
+ # source://railties//lib/rails/generators/actions/create_migration.rb#9
2605
+ class Rails::Generators::Actions::CreateMigration < ::Thor::Actions::CreateFile
2606
+ # source://railties//lib/rails/generators/actions/create_migration.rb#41
2607
+ def existing_migration; end
2608
+
2609
+ # source://railties//lib/rails/generators/actions/create_migration.rb#41
2610
+ def exists?; end
2611
+
2612
+ # @return [Boolean]
2613
+ #
2614
+ # source://railties//lib/rails/generators/actions/create_migration.rb#18
2615
+ def identical?; end
2616
+
2617
+ # source://railties//lib/rails/generators/actions/create_migration.rb#22
2618
+ def invoke!; end
2619
+
2620
+ # source://railties//lib/rails/generators/actions/create_migration.rb#10
2621
+ def migration_dir; end
2622
+
2623
+ # source://railties//lib/rails/generators/actions/create_migration.rb#14
2624
+ def migration_file_name; end
2625
+
2626
+ # source://railties//lib/rails/generators/actions/create_migration.rb#37
2627
+ def relative_existing_migration; end
2628
+
2629
+ # source://railties//lib/rails/generators/actions/create_migration.rb#29
2630
+ def revoke!; end
2631
+
2632
+ private
2633
+
2634
+ # source://railties//lib/rails/generators/actions/create_migration.rb#48
2635
+ def on_conflict_behavior; end
2636
+
2637
+ # source://railties//lib/rails/generators/actions/create_migration.rb#69
2638
+ def say_status(status, color, message = T.unsafe(nil)); end
2639
+ end
2640
+
2641
+ # ActiveModel is a class to be implemented by each ORM to allow Rails to
2642
+ # generate customized controller code.
2643
+ #
2644
+ # The API has the same methods as ActiveRecord, but each method returns a
2645
+ # string that matches the ORM API.
2646
+ #
2647
+ # For example:
2648
+ #
2649
+ # ActiveRecord::Generators::ActiveModel.find(Foo, "params[:id]")
2650
+ # # => "Foo.find(params[:id])"
2651
+ #
2652
+ # DataMapper::Generators::ActiveModel.find(Foo, "params[:id]")
2653
+ # # => "Foo.get(params[:id])"
2654
+ #
2655
+ # On initialization, the ActiveModel accepts the instance name that will
2656
+ # receive the calls:
2657
+ #
2658
+ # builder = ActiveRecord::Generators::ActiveModel.new "@foo"
2659
+ # builder.save # => "@foo.save"
2660
+ #
2661
+ # The only exception in ActiveModel for ActiveRecord is the use of self.build
2662
+ # instead of self.new.
2663
+ #
2664
+ # source://railties//lib/rails/generators/active_model.rb#28
2665
+ class Rails::Generators::ActiveModel
2666
+ # @return [ActiveModel] a new instance of ActiveModel
2667
+ #
2668
+ # source://railties//lib/rails/generators/active_model.rb#31
2669
+ def initialize(name); end
2670
+
2671
+ # DELETE destroy
2672
+ #
2673
+ # source://railties//lib/rails/generators/active_model.rb#75
2674
+ def destroy; end
2675
+
2676
+ # POST create
2677
+ # PATCH/PUT update
2678
+ #
2679
+ # source://railties//lib/rails/generators/active_model.rb#70
2680
+ def errors; end
2681
+
2682
+ # Returns the value of attribute name.
2683
+ #
2684
+ # source://railties//lib/rails/generators/active_model.rb#29
2685
+ def name; end
2686
+
2687
+ # POST create
2688
+ #
2689
+ # source://railties//lib/rails/generators/active_model.rb#59
2690
+ def save; end
2691
+
2692
+ # PATCH/PUT update
2693
+ #
2694
+ # source://railties//lib/rails/generators/active_model.rb#64
2695
+ def update(params = T.unsafe(nil)); end
2696
+
2697
+ class << self
2698
+ # GET index
2699
+ #
2700
+ # source://railties//lib/rails/generators/active_model.rb#36
2701
+ def all(klass); end
2702
+
2703
+ # GET new
2704
+ # POST create
2705
+ #
2706
+ # source://railties//lib/rails/generators/active_model.rb#50
2707
+ def build(klass, params = T.unsafe(nil)); end
2708
+
2709
+ # GET show
2710
+ # GET edit
2711
+ # PATCH/PUT update
2712
+ # DELETE destroy
2713
+ #
2714
+ # source://railties//lib/rails/generators/active_model.rb#44
2715
+ def find(klass, params = T.unsafe(nil)); end
2716
+ end
2717
+ end
2718
+
2719
+ # source://railties//lib/rails/generators/base.rb#17
2720
+ class Rails::Generators::Base < ::Thor::Group
2721
+ include ::Thor::Actions
2722
+ include ::Rails::Generators::Actions
2723
+ extend ::Thor::Actions::ClassMethods
2724
+
2725
+ private
2726
+
2727
+ # Check whether the given class names are already taken by user
2728
+ # application or Ruby on Rails.
2729
+ #
2730
+ # source://railties//lib/rails/generators/base.rb#256
2731
+ def class_collisions(*class_names); end
2732
+
2733
+ # Takes in an array of nested modules and extracts the last module
2734
+ #
2735
+ # source://railties//lib/rails/generators/base.rb#279
2736
+ def extract_last_module(nesting); end
2737
+
2738
+ # source://railties//lib/rails/generators/base.rb#294
2739
+ def indent(content, multiplier = T.unsafe(nil)); end
2740
+
2741
+ # Wrap block with namespace of current application
2742
+ # if namespace exists and is not skipped
2743
+ #
2744
+ # source://railties//lib/rails/generators/base.rb#288
2745
+ def module_namespacing(&block); end
2746
+
2747
+ # source://railties//lib/rails/generators/base.rb#304
2748
+ def namespace; end
2749
+
2750
+ # source://railties//lib/rails/generators/base.rb#312
2751
+ def namespace_dirs; end
2752
+
2753
+ # @return [Boolean]
2754
+ #
2755
+ # source://railties//lib/rails/generators/base.rb#308
2756
+ def namespaced?; end
2757
+
2758
+ # source://railties//lib/rails/generators/base.rb#316
2759
+ def namespaced_path; end
2760
+
2761
+ # source://railties//lib/rails/generators/base.rb#299
2762
+ def wrap_with_namespace(content); end
2763
+
2764
+ class << self
2765
+ # Small macro to add ruby as an option to the generator with proper
2766
+ # default value plus an instance helper method called shebang.
2767
+ #
2768
+ # source://railties//lib/rails/generators/base.rb#388
2769
+ def add_shebang_option!; end
2770
+
2771
+ # Use Rails default banner.
2772
+ #
2773
+ # source://railties//lib/rails/generators/base.rb#321
2774
+ def banner; end
2775
+
2776
+ # Sets the base_name taking into account the current class namespace.
2777
+ #
2778
+ # source://railties//lib/rails/generators/base.rb#326
2779
+ def base_name; end
2780
+
2781
+ # Returns the base root for a common set of generators. This is used to dynamically
2782
+ # guess the default source root.
2783
+ #
2784
+ # source://railties//lib/rails/generators/base.rb#228
2785
+ def base_root; end
2786
+
2787
+ # Make class option aware of Rails::Generators.options and Rails::Generators.aliases.
2788
+ #
2789
+ # source://railties//lib/rails/generators/base.rb#209
2790
+ def class_option(name, options = T.unsafe(nil)); end
2791
+
2792
+ # Returns default aliases for the option name given doing a lookup in
2793
+ # Rails::Generators.aliases.
2794
+ #
2795
+ # source://railties//lib/rails/generators/base.rb#349
2796
+ def default_aliases_for_option(name, options); end
2797
+
2798
+ # Returns default for the option name given doing a lookup in config.
2799
+ #
2800
+ # source://railties//lib/rails/generators/base.rb#354
2801
+ def default_for_option(config, name, options, default); end
2802
+
2803
+ # source://railties//lib/rails/generators/base.rb#414
2804
+ def default_generator_root; end
2805
+
2806
+ # Returns the default source root for a given generator. This is used internally
2807
+ # by rails to set its generators source root. If you want to customize your source
2808
+ # root, you should use source_root.
2809
+ #
2810
+ # source://railties//lib/rails/generators/base.rb#219
2811
+ def default_source_root; end
2812
+
2813
+ # Returns the default value for the option name given doing a lookup in
2814
+ # Rails::Generators.options.
2815
+ #
2816
+ # source://railties//lib/rails/generators/base.rb#343
2817
+ def default_value_for_option(name, options); end
2818
+
2819
+ # Tries to get the description from a USAGE file one folder above the source
2820
+ # root otherwise uses a default description.
2821
+ #
2822
+ # source://railties//lib/rails/generators/base.rb#41
2823
+ def desc(description = T.unsafe(nil)); end
2824
+
2825
+ # @return [Boolean]
2826
+ #
2827
+ # source://railties//lib/rails/generators/base.rb#29
2828
+ def exit_on_failure?; end
2829
+
2830
+ # Removes the namespaces and get the generator name. For example,
2831
+ # Rails::Generators::ModelGenerator will return "model" as generator name.
2832
+ #
2833
+ # source://railties//lib/rails/generators/base.rb#334
2834
+ def generator_name; end
2835
+
2836
+ # Convenience method to hide this generator from the available ones when
2837
+ # running rails generator command.
2838
+ #
2839
+ # source://railties//lib/rails/generators/base.rb#61
2840
+ def hide!; end
2841
+
2842
+ # Invoke a generator based on the value supplied by the user to the
2843
+ # given option named "name". A class option is created when this method
2844
+ # is invoked and you can set a hash to customize it.
2845
+ #
2846
+ # ==== Examples
2847
+ #
2848
+ # module Rails::Generators
2849
+ # class ControllerGenerator < Base
2850
+ # hook_for :test_framework, aliases: "-t"
2851
+ # end
2852
+ # end
2853
+ #
2854
+ # The example above will create a test framework option and will invoke
2855
+ # a generator based on the user supplied value.
2856
+ #
2857
+ # For example, if the user invoke the controller generator as:
2858
+ #
2859
+ # bin/rails generate controller Account --test-framework=test_unit
2860
+ #
2861
+ # The controller generator will then try to invoke the following generators:
2862
+ #
2863
+ # "rails:test_unit", "test_unit:controller", "test_unit"
2864
+ #
2865
+ # Notice that "rails:generators:test_unit" could be loaded as well, what
2866
+ # Rails looks for is the first and last parts of the namespace. This is what
2867
+ # allows any test framework to hook into Rails as long as it provides any
2868
+ # of the hooks above.
2869
+ #
2870
+ # ==== Options
2871
+ #
2872
+ # The first and last part used to find the generator to be invoked are
2873
+ # guessed based on class invokes hook_for, as noticed in the example above.
2874
+ # This can be customized with two options: +:in+ and +:as+.
2875
+ #
2876
+ # Let's suppose you are creating a generator that needs to invoke the
2877
+ # controller generator from test unit. Your first attempt is:
2878
+ #
2879
+ # class AwesomeGenerator < Rails::Generators::Base
2880
+ # hook_for :test_framework
2881
+ # end
2882
+ #
2883
+ # The lookup in this case for test_unit as input is:
2884
+ #
2885
+ # "test_unit:awesome", "test_unit"
2886
+ #
2887
+ # Which is not the desired lookup. You can change it by providing the
2888
+ # +:as+ option:
2889
+ #
2890
+ # class AwesomeGenerator < Rails::Generators::Base
2891
+ # hook_for :test_framework, as: :controller
2892
+ # end
2893
+ #
2894
+ # And now it will look up at:
2895
+ #
2896
+ # "test_unit:controller", "test_unit"
2897
+ #
2898
+ # Similarly, if you want it to also look up in the rails namespace, you
2899
+ # just need to provide the +:in+ value:
2900
+ #
2901
+ # class AwesomeGenerator < Rails::Generators::Base
2902
+ # hook_for :test_framework, in: :rails, as: :controller
2903
+ # end
2904
+ #
2905
+ # And the lookup is exactly the same as previously:
2906
+ #
2907
+ # "rails:test_unit", "test_unit:controller", "test_unit"
2908
+ #
2909
+ # ==== Switches
2910
+ #
2911
+ # All hooks come with switches for user interface. If you do not want
2912
+ # to use any test framework, you can do:
2913
+ #
2914
+ # bin/rails generate controller Account --skip-test-framework
2915
+ #
2916
+ # Or similarly:
2917
+ #
2918
+ # bin/rails generate controller Account --no-test-framework
2919
+ #
2920
+ # ==== Boolean hooks
2921
+ #
2922
+ # In some cases, you may want to provide a boolean hook. For example, webrat
2923
+ # developers might want to have webrat available on controller generator.
2924
+ # This can be achieved as:
2925
+ #
2926
+ # Rails::Generators::ControllerGenerator.hook_for :webrat, type: :boolean
2927
+ #
2928
+ # Then, if you want webrat to be invoked, just supply:
2929
+ #
2930
+ # bin/rails generate controller Account --webrat
2931
+ #
2932
+ # The hooks lookup is similar as above:
2933
+ #
2934
+ # "rails:generators:webrat", "webrat:generators:controller", "webrat"
2935
+ #
2936
+ # ==== Custom invocations
2937
+ #
2938
+ # You can also supply a block to hook_for to customize how the hook is
2939
+ # going to be invoked. The block receives two arguments, an instance
2940
+ # of the current class and the class to be invoked.
2941
+ #
2942
+ # For example, in the resource generator, the controller should be invoked
2943
+ # with a pluralized class name. But by default it is invoked with the same
2944
+ # name as the resource generator, which is singular. To change this, we
2945
+ # can give a block to customize how the controller can be invoked.
2946
+ #
2947
+ # hook_for :resource_controller do |instance, controller|
2948
+ # instance.invoke controller, [ instance.name.pluralize ]
2949
+ # end
2950
+ #
2951
+ # source://railties//lib/rails/generators/base.rb#174
2952
+ def hook_for(*names, &block); end
2953
+
2954
+ # Keep hooks configuration that are used on prepare_for_invocation.
2955
+ #
2956
+ # source://railties//lib/rails/generators/base.rb#367
2957
+ def hooks; end
2958
+
2959
+ # Cache source root and add lib/generators/base/generator/templates to
2960
+ # source paths.
2961
+ #
2962
+ # source://railties//lib/rails/generators/base.rb#234
2963
+ def inherited(base); end
2964
+
2965
+ # Convenience method to get the namespace from the class name. It's the
2966
+ # same as Thor default except that the Generator at the end of the class
2967
+ # is removed.
2968
+ #
2969
+ # source://railties//lib/rails/generators/base.rb#54
2970
+ def namespace(name = T.unsafe(nil)); end
2971
+
2972
+ # Prepare class invocation to search on Rails namespace if a previous
2973
+ # added hook is being used.
2974
+ #
2975
+ # source://railties//lib/rails/generators/base.rb#373
2976
+ def prepare_for_invocation(name, value); end
2977
+
2978
+ # Remove a previously added hook.
2979
+ #
2980
+ # remove_hook_for :orm
2981
+ #
2982
+ # source://railties//lib/rails/generators/base.rb#200
2983
+ def remove_hook_for(*names); end
2984
+
2985
+ # Returns the source root for this generator using default_source_root as default.
2986
+ #
2987
+ # source://railties//lib/rails/generators/base.rb#34
2988
+ def source_root(path = T.unsafe(nil)); end
2989
+
2990
+ # source://railties//lib/rails/generators/base.rb#406
2991
+ def usage_path; end
2992
+ end
2993
+ end
2994
+
2995
+ # source://railties//lib/rails/generators/base.rb#14
2996
+ class Rails::Generators::Error < ::Thor::Error; end
2997
+
2998
+ # source://railties//lib/rails/generators/generated_attribute.rb#7
2999
+ class Rails::Generators::GeneratedAttribute
3000
+ # @return [GeneratedAttribute] a new instance of GeneratedAttribute
3001
+ #
3002
+ # source://railties//lib/rails/generators/generated_attribute.rb#97
3003
+ def initialize(name, type = T.unsafe(nil), index_type = T.unsafe(nil), attr_options = T.unsafe(nil)); end
3004
+
3005
+ # @return [Boolean]
3006
+ #
3007
+ # source://railties//lib/rails/generators/generated_attribute.rb#199
3008
+ def attachment?; end
3009
+
3010
+ # @return [Boolean]
3011
+ #
3012
+ # source://railties//lib/rails/generators/generated_attribute.rb#203
3013
+ def attachments?; end
3014
+
3015
+ # Returns the value of attribute attr_options.
3016
+ #
3017
+ # source://railties//lib/rails/generators/generated_attribute.rb#31
3018
+ def attr_options; end
3019
+
3020
+ # source://railties//lib/rails/generators/generated_attribute.rb#159
3021
+ def column_name; end
3022
+
3023
+ # source://railties//lib/rails/generators/generated_attribute.rb#121
3024
+ def default; end
3025
+
3026
+ # source://railties//lib/rails/generators/generated_attribute.rb#105
3027
+ def field_type; end
3028
+
3029
+ # @return [Boolean]
3030
+ #
3031
+ # source://railties//lib/rails/generators/generated_attribute.rb#163
3032
+ def foreign_key?; end
3033
+
3034
+ # @return [Boolean]
3035
+ #
3036
+ # source://railties//lib/rails/generators/generated_attribute.rb#179
3037
+ def has_index?; end
3038
+
3039
+ # @return [Boolean]
3040
+ #
3041
+ # source://railties//lib/rails/generators/generated_attribute.rb#183
3042
+ def has_uniq_index?; end
3043
+
3044
+ # source://railties//lib/rails/generators/generated_attribute.rb#147
3045
+ def human_name; end
3046
+
3047
+ # source://railties//lib/rails/generators/generated_attribute.rb#151
3048
+ def index_name; end
3049
+
3050
+ # Sets the attribute index_name
3051
+ #
3052
+ # @param value the value to set the attribute index_name to.
3053
+ #
3054
+ # source://railties//lib/rails/generators/generated_attribute.rb#32
3055
+ def index_name=(_arg0); end
3056
+
3057
+ # source://railties//lib/rails/generators/generated_attribute.rb#215
3058
+ def inject_index_options; end
3059
+
3060
+ # source://railties//lib/rails/generators/generated_attribute.rb#211
3061
+ def inject_options; end
3062
+
3063
+ # Returns the value of attribute name.
3064
+ #
3065
+ # source://railties//lib/rails/generators/generated_attribute.rb#30
3066
+ def name; end
3067
+
3068
+ # Sets the attribute name
3069
+ #
3070
+ # @param value the value to set the attribute name to.
3071
+ #
3072
+ # source://railties//lib/rails/generators/generated_attribute.rb#30
3073
+ def name=(_arg0); end
3074
+
3075
+ # source://railties//lib/rails/generators/generated_attribute.rb#219
3076
+ def options_for_migration; end
3077
+
3078
+ # @return [Boolean]
3079
+ #
3080
+ # source://railties//lib/rails/generators/generated_attribute.rb#187
3081
+ def password_digest?; end
3082
+
3083
+ # source://railties//lib/rails/generators/generated_attribute.rb#139
3084
+ def plural_name; end
3085
+
3086
+ # @return [Boolean]
3087
+ #
3088
+ # source://railties//lib/rails/generators/generated_attribute.rb#171
3089
+ def polymorphic?; end
3090
+
3091
+ # @return [Boolean]
3092
+ #
3093
+ # source://railties//lib/rails/generators/generated_attribute.rb#167
3094
+ def reference?; end
3095
+
3096
+ # @return [Boolean]
3097
+ #
3098
+ # source://railties//lib/rails/generators/generated_attribute.rb#175
3099
+ def required?; end
3100
+
3101
+ # @return [Boolean]
3102
+ #
3103
+ # source://railties//lib/rails/generators/generated_attribute.rb#195
3104
+ def rich_text?; end
3105
+
3106
+ # source://railties//lib/rails/generators/generated_attribute.rb#143
3107
+ def singular_name; end
3108
+
3109
+ # @return [Boolean]
3110
+ #
3111
+ # source://railties//lib/rails/generators/generated_attribute.rb#191
3112
+ def token?; end
3113
+
3114
+ # Returns the value of attribute type.
3115
+ #
3116
+ # source://railties//lib/rails/generators/generated_attribute.rb#30
3117
+ def type; end
3118
+
3119
+ # Sets the attribute type
3120
+ #
3121
+ # @param value the value to set the attribute type to.
3122
+ #
3123
+ # source://railties//lib/rails/generators/generated_attribute.rb#30
3124
+ def type=(_arg0); end
3125
+
3126
+ # @return [Boolean]
3127
+ #
3128
+ # source://railties//lib/rails/generators/generated_attribute.rb#207
3129
+ def virtual?; end
3130
+
3131
+ class << self
3132
+ # source://railties//lib/rails/generators/generated_attribute.rb#35
3133
+ def parse(column_definition); end
3134
+
3135
+ # @return [Boolean]
3136
+ #
3137
+ # source://railties//lib/rails/generators/generated_attribute.rb#72
3138
+ def reference?(type); end
3139
+
3140
+ # @return [Boolean]
3141
+ #
3142
+ # source://railties//lib/rails/generators/generated_attribute.rb#68
3143
+ def valid_index_type?(index_type); end
3144
+
3145
+ # @return [Boolean]
3146
+ #
3147
+ # source://railties//lib/rails/generators/generated_attribute.rb#63
3148
+ def valid_type?(type); end
3149
+
3150
+ private
3151
+
3152
+ # parse possible attribute options like :limit for string/text/binary/integer, :precision/:scale for decimals or :polymorphic for references/belongs_to
3153
+ # when declaring options curly brackets should be used
3154
+ #
3155
+ # source://railties//lib/rails/generators/generated_attribute.rb#79
3156
+ def parse_type_and_options(type); end
3157
+ end
3158
+ end
3159
+
3160
+ # source://railties//lib/rails/generators/generated_attribute.rb#10
3161
+ Rails::Generators::GeneratedAttribute::DEFAULT_TYPES = T.let(T.unsafe(nil), Array)
3162
+
3163
+ # source://railties//lib/rails/generators/generated_attribute.rb#8
3164
+ Rails::Generators::GeneratedAttribute::INDEX_OPTIONS = T.let(T.unsafe(nil), Array)
3165
+
3166
+ # source://railties//lib/rails/generators/generated_attribute.rb#9
3167
+ Rails::Generators::GeneratedAttribute::UNIQ_INDEX_OPTIONS = T.let(T.unsafe(nil), Array)
3168
+
3169
+ # Holds common methods for migrations. It assumes that migrations have the
3170
+ # [0-9]*_name format and can be used by other frameworks (like Sequel)
3171
+ # just by implementing the next migration version method.
3172
+ #
3173
+ # source://railties//lib/rails/generators/migration.rb#11
3174
+ module Rails::Generators::Migration
3175
+ extend ::ActiveSupport::Concern
3176
+
3177
+ mixes_in_class_methods ::Rails::Generators::Migration::ClassMethods
3178
+
3179
+ # source://railties//lib/rails/generators/migration.rb#35
3180
+ def create_migration(destination, data, config = T.unsafe(nil), &block); end
3181
+
3182
+ # Returns the value of attribute migration_class_name.
3183
+ #
3184
+ # source://railties//lib/rails/generators/migration.rb#13
3185
+ def migration_class_name; end
3186
+
3187
+ # Returns the value of attribute migration_file_name.
3188
+ #
3189
+ # source://railties//lib/rails/generators/migration.rb#13
3190
+ def migration_file_name; end
3191
+
3192
+ # Returns the value of attribute migration_number.
3193
+ #
3194
+ # source://railties//lib/rails/generators/migration.rb#13
3195
+ def migration_number; end
3196
+
3197
+ # Creates a migration template at the given destination. The difference
3198
+ # to the default template method is that the migration version is appended
3199
+ # to the destination file name.
3200
+ #
3201
+ # The migration version, migration file name, migration class name are
3202
+ # available as instance variables in the template to be rendered.
3203
+ #
3204
+ # migration_template "migration.rb", "db/migrate/add_foo_to_bar.rb"
3205
+ #
3206
+ # source://railties//lib/rails/generators/migration.rb#56
3207
+ def migration_template(source, destination, config = T.unsafe(nil)); end
3208
+
3209
+ # source://railties//lib/rails/generators/migration.rb#39
3210
+ def set_migration_assigns!(destination); end
3211
+ end
3212
+
3213
+ # source://railties//lib/rails/generators/migration.rb#15
3214
+ module Rails::Generators::Migration::ClassMethods
3215
+ # source://railties//lib/rails/generators/migration.rb#24
3216
+ def current_migration_number(dirname); end
3217
+
3218
+ # @return [Boolean]
3219
+ #
3220
+ # source://railties//lib/rails/generators/migration.rb#20
3221
+ def migration_exists?(dirname, file_name); end
3222
+
3223
+ # source://railties//lib/rails/generators/migration.rb#16
3224
+ def migration_lookup_at(dirname); end
3225
+
3226
+ # @raise [NotImplementedError]
3227
+ #
3228
+ # source://railties//lib/rails/generators/migration.rb#30
3229
+ def next_migration_number(dirname); end
3230
+ end
3231
+
3232
+ # source://railties//lib/rails/generators/named_base.rb#8
3233
+ class Rails::Generators::NamedBase < ::Rails::Generators::Base
3234
+ # @return [NamedBase] a new instance of NamedBase
3235
+ #
3236
+ # source://railties//lib/rails/generators/named_base.rb#11
3237
+ def initialize(args, *options); end
3238
+
3239
+ # Returns the value of attribute file_name.
3240
+ #
3241
+ # source://thor/1.2.1/lib/thor/base.rb#139
3242
+ def file_name; end
3243
+
3244
+ # source://railties//lib/rails/generators/named_base.rb#29
3245
+ def js_template(source, destination); end
3246
+
3247
+ # source://thor/1.2.1/lib/thor/base.rb#147
3248
+ def name; end
3249
+
3250
+ # source://thor/1.2.1/lib/thor/base.rb#147
3251
+ def name=(_arg0); end
3252
+
3253
+ # source://railties//lib/rails/generators/named_base.rb#23
3254
+ def template(source, *args, &block); end
3255
+
3256
+ private
3257
+
3258
+ # Tries to retrieve the application name or simply return application.
3259
+ #
3260
+ # source://railties//lib/rails/generators/named_base.rb#138
3261
+ def application_name; end
3262
+
3263
+ # source://railties//lib/rails/generators/named_base.rb#175
3264
+ def assign_names!(name); end
3265
+
3266
+ # source://railties//lib/rails/generators/named_base.rb#188
3267
+ def attributes_names; end
3268
+
3269
+ # source://railties//lib/rails/generators/named_base.rb#70
3270
+ def class_name; end
3271
+
3272
+ # source://railties//lib/rails/generators/named_base.rb#58
3273
+ def class_path; end
3274
+
3275
+ # source://railties//lib/rails/generators/named_base.rb#105
3276
+ def edit_helper(*_arg0, **_arg1, &_arg2); end
3277
+
3278
+ # source://railties//lib/rails/generators/named_base.rb#54
3279
+ def file_path; end
3280
+
3281
+ # source://railties//lib/rails/generators/named_base.rb#125
3282
+ def fixture_file_name; end
3283
+
3284
+ # source://railties//lib/rails/generators/named_base.rb#74
3285
+ def human_name; end
3286
+
3287
+ # source://railties//lib/rails/generators/named_base.rb#82
3288
+ def i18n_scope; end
3289
+
3290
+ # source://railties//lib/rails/generators/named_base.rb#97
3291
+ def index_helper(type: T.unsafe(nil)); end
3292
+
3293
+ # source://railties//lib/rails/generators/named_base.rb#43
3294
+ def inside_template; end
3295
+
3296
+ # @return [Boolean]
3297
+ #
3298
+ # source://railties//lib/rails/generators/named_base.rb#50
3299
+ def inside_template?; end
3300
+
3301
+ # source://railties//lib/rails/generators/named_base.rb#150
3302
+ def model_resource_name(base_name = T.unsafe(nil), prefix: T.unsafe(nil)); end
3303
+
3304
+ # @return [Boolean]
3305
+ #
3306
+ # source://railties//lib/rails/generators/named_base.rb#200
3307
+ def mountable_engine?; end
3308
+
3309
+ # source://railties//lib/rails/generators/named_base.rb#66
3310
+ def namespaced_class_path; end
3311
+
3312
+ # source://railties//lib/rails/generators/named_base.rb#109
3313
+ def new_helper(type: T.unsafe(nil)); end
3314
+
3315
+ # Convert attributes array into GeneratedAttribute objects.
3316
+ #
3317
+ # source://railties//lib/rails/generators/named_base.rb#182
3318
+ def parse_attributes!; end
3319
+
3320
+ # source://railties//lib/rails/generators/named_base.rb#121
3321
+ def plural_file_name; end
3322
+
3323
+ # source://railties//lib/rails/generators/named_base.rb#78
3324
+ def plural_name; end
3325
+
3326
+ # source://railties//lib/rails/generators/named_base.rb#167
3327
+ def plural_route_name; end
3328
+
3329
+ # source://railties//lib/rails/generators/named_base.rb#117
3330
+ def plural_table_name; end
3331
+
3332
+ # @return [Boolean]
3333
+ #
3334
+ # source://railties//lib/rails/generators/named_base.rb#196
3335
+ def pluralize_table_names?; end
3336
+
3337
+ # source://railties//lib/rails/generators/named_base.rb#146
3338
+ def redirect_resource_name; end
3339
+
3340
+ # source://railties//lib/rails/generators/named_base.rb#62
3341
+ def regular_class_path; end
3342
+
3343
+ # source://railties//lib/rails/generators/named_base.rb#129
3344
+ def route_url; end
3345
+
3346
+ # source://railties//lib/rails/generators/named_base.rb#101
3347
+ def show_helper(arg = T.unsafe(nil), type: T.unsafe(nil)); end
3348
+
3349
+ # FIXME: We are avoiding to use alias because a bug on thor that make
3350
+ # this method public and add it to the task list.
3351
+ #
3352
+ # source://railties//lib/rails/generators/named_base.rb#39
3353
+ def singular_name; end
3354
+
3355
+ # source://railties//lib/rails/generators/named_base.rb#159
3356
+ def singular_route_name; end
3357
+
3358
+ # source://railties//lib/rails/generators/named_base.rb#113
3359
+ def singular_table_name; end
3360
+
3361
+ # source://railties//lib/rails/generators/named_base.rb#86
3362
+ def table_name; end
3363
+
3364
+ # @return [Boolean]
3365
+ #
3366
+ # source://railties//lib/rails/generators/named_base.rb#93
3367
+ def uncountable?; end
3368
+
3369
+ # source://railties//lib/rails/generators/named_base.rb#133
3370
+ def url_helper_prefix; end
3371
+
3372
+ class << self
3373
+ # Add a class collisions name to be checked on class initialization. You
3374
+ # can supply a hash with a +:prefix+ or +:suffix+ to be tested.
3375
+ #
3376
+ # ==== Examples
3377
+ #
3378
+ # check_class_collision suffix: "Decorator"
3379
+ #
3380
+ # If the generator is invoked with class name Admin, it will check for
3381
+ # the presence of "AdminDecorator".
3382
+ #
3383
+ # source://railties//lib/rails/generators/named_base.rb#214
3384
+ def check_class_collision(options = T.unsafe(nil)); end
3385
+ end
3386
+ end
3387
+
3388
+ # This module helps build the runtime properties that are displayed in
3389
+ # Rails::InfoController responses. These include the active Rails version,
3390
+ # Ruby version, Rack version, and so on.
3391
+ #
3392
+ # source://railties//lib/rails/info.rb#9
3393
+ module Rails::Info
3394
+ # source://railties//lib/rails/info.rb#10
3395
+ def properties; end
3396
+
3397
+ # source://railties//lib/rails/info.rb#10
3398
+ def properties=(val); end
3399
+
3400
+ class << self
3401
+ # source://railties//lib/rails/info.rb#31
3402
+ def inspect; end
3403
+
3404
+ # source://railties//lib/rails/info.rb#10
3405
+ def properties; end
3406
+
3407
+ # source://railties//lib/rails/info.rb#10
3408
+ def properties=(val); end
3409
+
3410
+ # source://railties//lib/rails/info.rb#25
3411
+ def property(name, value = T.unsafe(nil)); end
3412
+
3413
+ # source://railties//lib/rails/info.rb#43
3414
+ def to_html; end
3415
+
3416
+ # source://railties//lib/rails/info.rb#31
3417
+ def to_s; end
3418
+ end
3419
+ end
3420
+
3421
+ # source://railties//lib/rails/info_controller.rb#6
3422
+ class Rails::InfoController < ::Rails::ApplicationController
3423
+ # source://railties//lib/rails/info_controller.rb#12
3424
+ def index; end
3425
+
3426
+ # source://railties//lib/rails/info_controller.rb#16
3427
+ def properties; end
3428
+
3429
+ # source://railties//lib/rails/info_controller.rb#21
3430
+ def routes; end
3431
+
3432
+ private
3433
+
3434
+ # source://actionview/7.0.4.3/lib/action_view/layouts.rb#328
3435
+ def _layout(lookup_context, formats); end
3436
+
3437
+ # source://railties//lib/rails/info_controller.rb#8
3438
+ def _layout_from_proc; end
3439
+
3440
+ # source://railties//lib/rails/info_controller.rb#36
3441
+ def match_route; end
3442
+
3443
+ # source://railties//lib/rails/info_controller.rb#40
3444
+ def with_leading_slash(path); end
3445
+
3446
+ class << self
3447
+ # source://activesupport/7.0.4.3/lib/active_support/callbacks.rb#68
3448
+ def __callbacks; end
3449
+
3450
+ # source://actionview/7.0.4.3/lib/action_view/layouts.rb#209
3451
+ def _layout; end
3452
+
3453
+ # source://actionview/7.0.4.3/lib/action_view/layouts.rb#210
3454
+ def _layout_conditions; end
3455
+
3456
+ # source://actionpack/7.0.4.3/lib/action_controller/metal.rb#210
3457
+ def middleware_stack; end
3458
+ end
3459
+ end
3460
+
3461
+ # source://railties//lib/rails/initializable.rb#6
3462
+ module Rails::Initializable
3463
+ mixes_in_class_methods ::Rails::Initializable::ClassMethods
3464
+
3465
+ # source://railties//lib/rails/initializable.rb#66
3466
+ def initializers; end
3467
+
3468
+ # source://railties//lib/rails/initializable.rb#58
3469
+ def run_initializers(group = T.unsafe(nil), *args); end
3470
+
3471
+ class << self
3472
+ # source://railties//lib/rails/initializable.rb#7
3473
+ def included(base); end
3474
+ end
3475
+ end
3476
+
3477
+ # source://railties//lib/rails/initializable.rb#70
3478
+ module Rails::Initializable::ClassMethods
3479
+ # @raise [ArgumentError]
3480
+ #
3481
+ # source://railties//lib/rails/initializable.rb#88
3482
+ def initializer(name, opts = T.unsafe(nil), &blk); end
3483
+
3484
+ # source://railties//lib/rails/initializable.rb#71
3485
+ def initializers; end
3486
+
3487
+ # source://railties//lib/rails/initializable.rb#75
3488
+ def initializers_chain; end
3489
+
3490
+ # source://railties//lib/rails/initializable.rb#84
3491
+ def initializers_for(binding); end
3492
+ end
3493
+
3494
+ # source://railties//lib/rails/initializable.rb#45
3495
+ class Rails::Initializable::Collection < ::Array
3496
+ include ::TSort
3497
+
3498
+ # source://railties//lib/rails/initializable.rb#53
3499
+ def +(other); end
3500
+
3501
+ # source://railties//lib/rails/initializable.rb#49
3502
+ def tsort_each_child(initializer, &block); end
3503
+
3504
+ def tsort_each_node; end
3505
+ end
3506
+
3507
+ # source://railties//lib/rails/initializable.rb#11
3508
+ class Rails::Initializable::Initializer
3509
+ # @return [Initializer] a new instance of Initializer
3510
+ #
3511
+ # source://railties//lib/rails/initializable.rb#14
3512
+ def initialize(name, context, options, &block); end
3513
+
3514
+ # source://railties//lib/rails/initializable.rb#23
3515
+ def after; end
3516
+
3517
+ # source://railties//lib/rails/initializable.rb#19
3518
+ def before; end
3519
+
3520
+ # @return [Boolean]
3521
+ #
3522
+ # source://railties//lib/rails/initializable.rb#27
3523
+ def belongs_to?(group); end
3524
+
3525
+ # source://railties//lib/rails/initializable.rb#35
3526
+ def bind(context); end
3527
+
3528
+ # Returns the value of attribute block.
3529
+ #
3530
+ # source://railties//lib/rails/initializable.rb#12
3531
+ def block; end
3532
+
3533
+ # source://railties//lib/rails/initializable.rb#40
3534
+ def context_class; end
3535
+
3536
+ # Returns the value of attribute name.
3537
+ #
3538
+ # source://railties//lib/rails/initializable.rb#12
3539
+ def name; end
3540
+
3541
+ # source://railties//lib/rails/initializable.rb#31
3542
+ def run(*args); end
3543
+ end
3544
+
3545
+ # source://railties//lib/rails/test_unit/line_filtering.rb#6
3546
+ module Rails::LineFiltering
3547
+ # source://railties//lib/rails/test_unit/line_filtering.rb#7
3548
+ def run(reporter, options = T.unsafe(nil)); end
3549
+ end
3550
+
3551
+ # source://railties//lib/rails/mailers_controller.rb#5
3552
+ class Rails::MailersController < ::Rails::ApplicationController
3553
+ # source://railties//lib/rails/mailers_controller.rb#16
3554
+ def index; end
3555
+
3556
+ # source://railties//lib/rails/mailers_controller.rb#21
3557
+ def preview; end
3558
+
3559
+ private
3560
+
3561
+ # source://actionview/7.0.4.3/lib/action_view/layouts.rb#328
3562
+ def _layout(lookup_context, formats); end
3563
+
3564
+ # source://railties//lib/rails/mailers_controller.rb#80
3565
+ def find_part(format); end
3566
+
3567
+ # source://railties//lib/rails/mailers_controller.rb#68
3568
+ def find_preferred_part(*formats); end
3569
+
3570
+ # source://railties//lib/rails/mailers_controller.rb#56
3571
+ def find_preview; end
3572
+
3573
+ # source://railties//lib/rails/mailers_controller.rb#92
3574
+ def locale_query(locale); end
3575
+
3576
+ # source://railties//lib/rails/mailers_controller.rb#88
3577
+ def part_query(mime_type); end
3578
+
3579
+ # source://railties//lib/rails/mailers_controller.rb#96
3580
+ def set_locale(&block); end
3581
+
3582
+ # @return [Boolean]
3583
+ #
3584
+ # source://railties//lib/rails/mailers_controller.rb#52
3585
+ def show_previews?; end
3586
+
3587
+ class << self
3588
+ # source://activesupport/7.0.4.3/lib/active_support/callbacks.rb#68
3589
+ def __callbacks; end
3590
+
3591
+ # source://actionpack/7.0.4.3/lib/abstract_controller/helpers.rb#11
3592
+ def _helper_methods; end
3593
+
3594
+ # source://actionpack/7.0.4.3/lib/action_controller/metal.rb#210
3595
+ def middleware_stack; end
3596
+ end
3597
+ end
3598
+
3599
+ # source://railties//lib/rails/mailers_controller.rb#0
3600
+ module Rails::MailersController::HelperMethods
3601
+ include ::ActionController::Base::HelperMethods
3602
+
3603
+ # source://railties//lib/rails/mailers_controller.rb#12
3604
+ def locale_query(*args, **_arg1, &block); end
3605
+
3606
+ # source://railties//lib/rails/mailers_controller.rb#12
3607
+ def part_query(*args, **_arg1, &block); end
3608
+ end
3609
+
3610
+ # source://railties//lib/rails/paths.rb#6
3611
+ module Rails::Paths; end
3612
+
3613
+ # source://railties//lib/rails/paths.rb#111
3614
+ class Rails::Paths::Path
3615
+ include ::Enumerable
3616
+
3617
+ # @return [Path] a new instance of Path
3618
+ #
3619
+ # source://railties//lib/rails/paths.rb#116
3620
+ def initialize(root, current, paths, options = T.unsafe(nil)); end
3621
+
3622
+ # source://railties//lib/rails/paths.rb#168
3623
+ def <<(path); end
3624
+
3625
+ # source://railties//lib/rails/paths.rb#129
3626
+ def absolute_current; end
3627
+
3628
+ # source://railties//lib/rails/paths.rb#150
3629
+ def autoload!; end
3630
+
3631
+ # source://railties//lib/rails/paths.rb#158
3632
+ def autoload?; end
3633
+
3634
+ # source://railties//lib/rails/paths.rb#150
3635
+ def autoload_once!; end
3636
+
3637
+ # source://railties//lib/rails/paths.rb#158
3638
+ def autoload_once?; end
3639
+
3640
+ # source://railties//lib/rails/paths.rb#133
3641
+ def children; end
3642
+
3643
+ # source://railties//lib/rails/paths.rb#173
3644
+ def concat(paths); end
3645
+
3646
+ # source://railties//lib/rails/paths.rb#164
3647
+ def each(&block); end
3648
+
3649
+ # source://railties//lib/rails/paths.rb#150
3650
+ def eager_load!; end
3651
+
3652
+ # source://railties//lib/rails/paths.rb#158
3653
+ def eager_load?; end
3654
+
3655
+ # Returns all expanded paths but only if they exist in the filesystem.
3656
+ #
3657
+ # source://railties//lib/rails/paths.rb#217
3658
+ def existent; end
3659
+
3660
+ # source://railties//lib/rails/paths.rb#228
3661
+ def existent_directories; end
3662
+
3663
+ # Expands all paths against the root and return all unique values.
3664
+ #
3665
+ # source://railties//lib/rails/paths.rb#198
3666
+ def expanded; end
3667
+
3668
+ # source://railties//lib/rails/paths.rb#193
3669
+ def extensions; end
3670
+
3671
+ # source://railties//lib/rails/paths.rb#140
3672
+ def first; end
3673
+
3674
+ # Returns the value of attribute glob.
3675
+ #
3676
+ # source://railties//lib/rails/paths.rb#114
3677
+ def glob; end
3678
+
3679
+ # Sets the attribute glob
3680
+ #
3681
+ # @param value the value to set the attribute glob to.
3682
+ #
3683
+ # source://railties//lib/rails/paths.rb#114
3684
+ def glob=(_arg0); end
3685
+
3686
+ # source://railties//lib/rails/paths.rb#144
3687
+ def last; end
3688
+
3689
+ # source://railties//lib/rails/paths.rb#150
3690
+ def load_path!; end
3691
+
3692
+ # source://railties//lib/rails/paths.rb#158
3693
+ def load_path?; end
3694
+
3695
+ # source://railties//lib/rails/paths.rb#185
3696
+ def paths; end
3697
+
3698
+ # source://railties//lib/rails/paths.rb#168
3699
+ def push(path); end
3700
+
3701
+ # source://railties//lib/rails/paths.rb#154
3702
+ def skip_autoload!; end
3703
+
3704
+ # source://railties//lib/rails/paths.rb#154
3705
+ def skip_autoload_once!; end
3706
+
3707
+ # source://railties//lib/rails/paths.rb#154
3708
+ def skip_eager_load!; end
3709
+
3710
+ # source://railties//lib/rails/paths.rb#154
3711
+ def skip_load_path!; end
3712
+
3713
+ # Expands all paths against the root and return all unique values.
3714
+ #
3715
+ # source://railties//lib/rails/paths.rb#198
3716
+ def to_a; end
3717
+
3718
+ # source://railties//lib/rails/paths.rb#181
3719
+ def to_ary; end
3720
+
3721
+ # source://railties//lib/rails/paths.rb#177
3722
+ def unshift(*paths); end
3723
+
3724
+ private
3725
+
3726
+ # source://railties//lib/rails/paths.rb#235
3727
+ def files_in(path); end
3728
+ end
3729
+
3730
+ # This object is an extended hash that behaves as root of the <tt>Rails::Paths</tt> system.
3731
+ # It allows you to collect information about how you want to structure your application
3732
+ # paths through a Hash-like API. It requires you to give a physical path on initialization.
3733
+ #
3734
+ # root = Root.new "/rails"
3735
+ # root.add "app/controllers", eager_load: true
3736
+ #
3737
+ # The above command creates a new root object and adds "app/controllers" as a path.
3738
+ # This means we can get a Rails::Paths::Path object back like below:
3739
+ #
3740
+ # path = root["app/controllers"]
3741
+ # path.eager_load? # => true
3742
+ # path.is_a?(Rails::Paths::Path) # => true
3743
+ #
3744
+ # The +Path+ object is simply an enumerable and allows you to easily add extra paths:
3745
+ #
3746
+ # path.is_a?(Enumerable) # => true
3747
+ # path.to_ary.inspect # => ["app/controllers"]
3748
+ #
3749
+ # path << "lib/controllers"
3750
+ # path.to_ary.inspect # => ["app/controllers", "lib/controllers"]
3751
+ #
3752
+ # Notice that when you add a path using +add+, the path object created already
3753
+ # contains the path with the same path value given to +add+. In some situations,
3754
+ # you may not want this behavior, so you can give <tt>:with</tt> as option.
3755
+ #
3756
+ # root.add "config/routes", with: "config/routes.rb"
3757
+ # root["config/routes"].inspect # => ["config/routes.rb"]
3758
+ #
3759
+ # The +add+ method accepts the following options as arguments:
3760
+ # eager_load, autoload, autoload_once, and glob.
3761
+ #
3762
+ # Finally, the +Path+ object also provides a few helpers:
3763
+ #
3764
+ # root = Root.new "/rails"
3765
+ # root.add "app/controllers"
3766
+ #
3767
+ # root["app/controllers"].expanded # => ["/rails/app/controllers"]
3768
+ # root["app/controllers"].existent # => ["/rails/app/controllers"]
3769
+ #
3770
+ # Check the <tt>Rails::Paths::Path</tt> documentation for more information.
3771
+ #
3772
+ # source://railties//lib/rails/paths.rb#48
3773
+ class Rails::Paths::Root
3774
+ # @return [Root] a new instance of Root
3775
+ #
3776
+ # source://railties//lib/rails/paths.rb#51
3777
+ def initialize(path); end
3778
+
3779
+ # source://railties//lib/rails/paths.rb#66
3780
+ def [](path); end
3781
+
3782
+ # source://railties//lib/rails/paths.rb#56
3783
+ def []=(path, value); end
3784
+
3785
+ # source://railties//lib/rails/paths.rb#61
3786
+ def add(path, options = T.unsafe(nil)); end
3787
+
3788
+ # source://railties//lib/rails/paths.rb#82
3789
+ def all_paths; end
3790
+
3791
+ # source://railties//lib/rails/paths.rb#86
3792
+ def autoload_once; end
3793
+
3794
+ # source://railties//lib/rails/paths.rb#94
3795
+ def autoload_paths; end
3796
+
3797
+ # source://railties//lib/rails/paths.rb#90
3798
+ def eager_load; end
3799
+
3800
+ # source://railties//lib/rails/paths.rb#74
3801
+ def keys; end
3802
+
3803
+ # source://railties//lib/rails/paths.rb#98
3804
+ def load_paths; end
3805
+
3806
+ # Returns the value of attribute path.
3807
+ #
3808
+ # source://railties//lib/rails/paths.rb#49
3809
+ def path; end
3810
+
3811
+ # Sets the attribute path
3812
+ #
3813
+ # @param value the value to set the attribute path to.
3814
+ #
3815
+ # source://railties//lib/rails/paths.rb#49
3816
+ def path=(_arg0); end
3817
+
3818
+ # source://railties//lib/rails/paths.rb#70
3819
+ def values; end
3820
+
3821
+ # source://railties//lib/rails/paths.rb#78
3822
+ def values_at(*list); end
3823
+
3824
+ private
3825
+
3826
+ # source://railties//lib/rails/paths.rb#103
3827
+ def filter_by(&block); end
3828
+ end
3829
+
3830
+ # source://railties//lib/rails/rack.rb#4
3831
+ module Rails::Rack; end
3832
+
3833
+ # Sets log tags, logs the request, calls the app, and flushes the logs.
3834
+ #
3835
+ # Log tags (+taggers+) can be an Array containing: methods that the +request+
3836
+ # object responds to, objects that respond to +to_s+ or Proc objects that accept
3837
+ # an instance of the +request+ object.
3838
+ #
3839
+ # source://railties//lib/rails/rack/logger.rb#15
3840
+ class Rails::Rack::Logger < ::ActiveSupport::LogSubscriber
3841
+ # @return [Logger] a new instance of Logger
3842
+ #
3843
+ # source://railties//lib/rails/rack/logger.rb#16
3844
+ def initialize(app, taggers = T.unsafe(nil)); end
3845
+
3846
+ # source://railties//lib/rails/rack/logger.rb#21
3847
+ def call(env); end
3848
+
3849
+ private
3850
+
3851
+ # source://railties//lib/rails/rack/logger.rb#32
3852
+ def call_app(request, env); end
3853
+
3854
+ # source://railties//lib/rails/rack/logger.rb#59
3855
+ def compute_tags(request); end
3856
+
3857
+ # source://railties//lib/rails/rack/logger.rb#72
3858
+ def logger; end
3859
+
3860
+ # Started GET "/session/new" for 127.0.0.1 at 2012-09-26 14:51:42 -0700
3861
+ #
3862
+ # source://railties//lib/rails/rack/logger.rb#51
3863
+ def started_request_message(request); end
3864
+ end
3865
+
3866
+ # <tt>Rails::Railtie</tt> is the core of the Rails framework and provides
3867
+ # several hooks to extend Rails and/or modify the initialization process.
3868
+ #
3869
+ # Every major component of Rails (Action Mailer, Action Controller, Active
3870
+ # Record, etc.) implements a railtie. Each of them is responsible for their
3871
+ # own initialization. This makes Rails itself absent of any component hooks,
3872
+ # allowing other components to be used in place of any of the Rails defaults.
3873
+ #
3874
+ # Developing a Rails extension does _not_ require implementing a railtie, but
3875
+ # if you need to interact with the Rails framework during or after boot, then
3876
+ # a railtie is needed.
3877
+ #
3878
+ # For example, an extension doing any of the following would need a railtie:
3879
+ #
3880
+ # * creating initializers
3881
+ # * configuring a Rails framework for the application, like setting a generator
3882
+ # * adding <tt>config.*</tt> keys to the environment
3883
+ # * setting up a subscriber with ActiveSupport::Notifications
3884
+ # * adding Rake tasks
3885
+ #
3886
+ # == Creating a Railtie
3887
+ #
3888
+ # To extend Rails using a railtie, create a subclass of <tt>Rails::Railtie</tt>.
3889
+ # This class must be loaded during the Rails boot process, and is conventionally
3890
+ # called <tt>MyNamespace::Railtie</tt>.
3891
+ #
3892
+ # The following example demonstrates an extension which can be used with or
3893
+ # without Rails.
3894
+ #
3895
+ # # lib/my_gem/railtie.rb
3896
+ # module MyGem
3897
+ # class Railtie < Rails::Railtie
3898
+ # end
3899
+ # end
3900
+ #
3901
+ # # lib/my_gem.rb
3902
+ # require "my_gem/railtie" if defined?(Rails::Railtie)
3903
+ #
3904
+ # == Initializers
3905
+ #
3906
+ # To add an initialization step to the Rails boot process from your railtie, just
3907
+ # define the initialization code with the +initializer+ macro:
3908
+ #
3909
+ # class MyRailtie < Rails::Railtie
3910
+ # initializer "my_railtie.configure_rails_initialization" do
3911
+ # # some initialization behavior
3912
+ # end
3913
+ # end
3914
+ #
3915
+ # If specified, the block can also receive the application object, in case you
3916
+ # need to access some application-specific configuration, like middleware:
3917
+ #
3918
+ # class MyRailtie < Rails::Railtie
3919
+ # initializer "my_railtie.configure_rails_initialization" do |app|
3920
+ # app.middleware.use MyRailtie::Middleware
3921
+ # end
3922
+ # end
3923
+ #
3924
+ # Finally, you can also pass <tt>:before</tt> and <tt>:after</tt> as options to
3925
+ # +initializer+, in case you want to couple it with a specific step in the
3926
+ # initialization process.
3927
+ #
3928
+ # == Configuration
3929
+ #
3930
+ # Railties can access a config object which contains configuration shared by all
3931
+ # railties and the application:
3932
+ #
3933
+ # class MyRailtie < Rails::Railtie
3934
+ # # Customize the ORM
3935
+ # config.app_generators.orm :my_railtie_orm
3936
+ #
3937
+ # # Add a to_prepare block which is executed once in production
3938
+ # # and before each request in development.
3939
+ # config.to_prepare do
3940
+ # MyRailtie.setup!
3941
+ # end
3942
+ # end
3943
+ #
3944
+ # == Loading Rake Tasks and Generators
3945
+ #
3946
+ # If your railtie has Rake tasks, you can tell Rails to load them through the method
3947
+ # +rake_tasks+:
3948
+ #
3949
+ # class MyRailtie < Rails::Railtie
3950
+ # rake_tasks do
3951
+ # load "path/to/my_railtie.tasks"
3952
+ # end
3953
+ # end
3954
+ #
3955
+ # By default, Rails loads generators from your load path. However, if you want to place
3956
+ # your generators at a different location, you can specify in your railtie a block which
3957
+ # will load them during normal generators lookup:
3958
+ #
3959
+ # class MyRailtie < Rails::Railtie
3960
+ # generators do
3961
+ # require "path/to/my_railtie_generator"
3962
+ # end
3963
+ # end
3964
+ #
3965
+ # Since filenames on the load path are shared across gems, be sure that files you load
3966
+ # through a railtie have unique names.
3967
+ #
3968
+ # == Run another program when the Rails server starts
3969
+ #
3970
+ # In development, it's very usual to have to run another process next to the Rails Server. In example
3971
+ # you might want to start the Webpack or React server. Or maybe you need to run your job scheduler process
3972
+ # like Sidekiq. This is usually done by opening a new shell and running the program from here.
3973
+ #
3974
+ # Rails allow you to specify a +server+ block which will get called when a Rails server starts.
3975
+ # This way, your users don't need to remember to have to open a new shell and run another program, making
3976
+ # this less confusing for everyone.
3977
+ # It can be used like this:
3978
+ #
3979
+ # class MyRailtie < Rails::Railtie
3980
+ # server do
3981
+ # WebpackServer.start
3982
+ # end
3983
+ # end
3984
+ #
3985
+ # == Application and Engine
3986
+ #
3987
+ # An engine is nothing more than a railtie with some initializers already set. And since
3988
+ # Rails::Application is an engine, the same configuration described here can be
3989
+ # used in both.
3990
+ #
3991
+ # Be sure to look at the documentation of those specific classes for more information.
3992
+ #
3993
+ # source://railties//lib/rails/railtie.rb#136
3994
+ class Rails::Railtie
3995
+ include ::Rails::Initializable
3996
+ extend ::ActiveSupport::DescendantsTracker
3997
+ extend ::Rails::Initializable::ClassMethods
3998
+
3999
+ # @return [Railtie] a new instance of Railtie
4000
+ #
4001
+ # source://railties//lib/rails/railtie.rb#246
4002
+ def initialize; end
4003
+
4004
+ # This is used to create the <tt>config</tt> object on Railties, an instance of
4005
+ # Railtie::Configuration, that is used by Railties and Application to store
4006
+ # related configuration.
4007
+ #
4008
+ # source://railties//lib/rails/railtie.rb#263
4009
+ def config; end
4010
+
4011
+ # source://railties//lib/rails/railtie.rb#256
4012
+ def configure(&block); end
4013
+
4014
+ # source://railties//lib/rails/railtie.rb#252
4015
+ def inspect; end
4016
+
4017
+ # source://railties//lib/rails/railtie.rb#244
4018
+ def railtie_name(*_arg0, **_arg1, &_arg2); end
4019
+
4020
+ # source://railties//lib/rails/railtie.rb#267
4021
+ def railtie_namespace; end
4022
+
4023
+ protected
4024
+
4025
+ # source://railties//lib/rails/railtie.rb#272
4026
+ def run_console_blocks(app); end
4027
+
4028
+ # source://railties//lib/rails/railtie.rb#276
4029
+ def run_generators_blocks(app); end
4030
+
4031
+ # source://railties//lib/rails/railtie.rb#280
4032
+ def run_runner_blocks(app); end
4033
+
4034
+ # source://railties//lib/rails/railtie.rb#289
4035
+ def run_server_blocks(app); end
4036
+
4037
+ # source://railties//lib/rails/railtie.rb#284
4038
+ def run_tasks_blocks(app); end
4039
+
4040
+ private
4041
+
4042
+ # run `&block` in every registered block in `#register_block_for`
4043
+ #
4044
+ # source://railties//lib/rails/railtie.rb#295
4045
+ def each_registered_block(type, &block); end
4046
+
4047
+ class << self
4048
+ # source://railties//lib/rails/railtie.rb#194
4049
+ def <=>(other); end
4050
+
4051
+ # @return [Boolean]
4052
+ #
4053
+ # source://railties//lib/rails/railtie.rb#172
4054
+ def abstract_railtie?; end
4055
+
4056
+ # source://railties//lib/rails/railtie.rb#146
4057
+ def config(*_arg0, **_arg1, &_arg2); end
4058
+
4059
+ # Allows you to configure the railtie. This is the same method seen in
4060
+ # Railtie::Configurable, but this module is no longer required for all
4061
+ # subclasses of Railtie so we provide the class method here.
4062
+ #
4063
+ # source://railties//lib/rails/railtie.rb#190
4064
+ def configure(&block); end
4065
+
4066
+ # source://railties//lib/rails/railtie.rb#156
4067
+ def console(&blk); end
4068
+
4069
+ # source://railties//lib/rails/railtie.rb#164
4070
+ def generators(&blk); end
4071
+
4072
+ # @private
4073
+ #
4074
+ # source://railties//lib/rails/railtie.rb#198
4075
+ def inherited(subclass); end
4076
+
4077
+ # Since Rails::Railtie cannot be instantiated, any methods that call
4078
+ # +instance+ are intended to be called only on subclasses of a Railtie.
4079
+ #
4080
+ # source://railties//lib/rails/railtie.rb#183
4081
+ def instance; end
4082
+
4083
+ # source://railties//lib/rails/railtie.rb#176
4084
+ def railtie_name(name = T.unsafe(nil)); end
4085
+
4086
+ # source://railties//lib/rails/railtie.rb#152
4087
+ def rake_tasks(&blk); end
4088
+
4089
+ # source://railties//lib/rails/railtie.rb#160
4090
+ def runner(&blk); end
4091
+
4092
+ # source://railties//lib/rails/railtie.rb#168
4093
+ def server(&blk); end
4094
+
4095
+ # source://railties//lib/rails/railtie.rb#148
4096
+ def subclasses; end
4097
+
4098
+ protected
4099
+
4100
+ # source://railties//lib/rails/railtie.rb#206
4101
+ def increment_load_index; end
4102
+
4103
+ # Returns the value of attribute load_index.
4104
+ #
4105
+ # source://railties//lib/rails/railtie.rb#204
4106
+ def load_index; end
4107
+
4108
+ private
4109
+
4110
+ # source://railties//lib/rails/railtie.rb#212
4111
+ def generate_railtie_name(string); end
4112
+
4113
+ # If the class method does not have a method, then send the method call
4114
+ # to the Railtie instance.
4115
+ #
4116
+ # source://railties//lib/rails/railtie.rb#224
4117
+ def method_missing(name, *args, **_arg2, &block); end
4118
+
4119
+ def new(*_arg0); end
4120
+
4121
+ # receives an instance variable identifier, set the variable value if is
4122
+ # blank and append given block to value, which will be used later in
4123
+ # `#each_registered_block(type, &block)`
4124
+ #
4125
+ # source://railties//lib/rails/railtie.rb#236
4126
+ def register_block_for(type, &blk); end
4127
+
4128
+ # @return [Boolean]
4129
+ #
4130
+ # source://railties//lib/rails/railtie.rb#216
4131
+ def respond_to_missing?(name, _); end
4132
+ end
4133
+ end
4134
+
4135
+ # source://railties//lib/rails/railtie.rb#142
4136
+ Rails::Railtie::ABSTRACT_RAILTIES = T.let(T.unsafe(nil), Array)
4137
+
4138
+ # source://railties//lib/rails/railtie/configuration.rb#7
4139
+ class Rails::Railtie::Configuration
4140
+ # @return [Configuration] a new instance of Configuration
4141
+ #
4142
+ # source://railties//lib/rails/railtie/configuration.rb#8
4143
+ def initialize; end
4144
+
4145
+ # Last configurable block to run. Called after frameworks initialize.
4146
+ #
4147
+ # source://railties//lib/rails/railtie/configuration.rb#70
4148
+ def after_initialize(&block); end
4149
+
4150
+ # This allows you to modify application's generators from Railties.
4151
+ #
4152
+ # Values set on app_generators will become defaults for application, unless
4153
+ # application overwrites them.
4154
+ #
4155
+ # @yield [@@app_generators]
4156
+ #
4157
+ # source://railties//lib/rails/railtie/configuration.rb#47
4158
+ def app_generators; end
4159
+
4160
+ # This allows you to modify the application's middlewares from Engines.
4161
+ #
4162
+ # All operations you run on the app_middleware will be replayed on the
4163
+ # application once it is defined and the default_middlewares are
4164
+ # created
4165
+ #
4166
+ # source://railties//lib/rails/railtie/configuration.rb#39
4167
+ def app_middleware; end
4168
+
4169
+ # First configurable block to run. Called before any initializers are run.
4170
+ #
4171
+ # source://railties//lib/rails/railtie/configuration.rb#54
4172
+ def before_configuration(&block); end
4173
+
4174
+ # Third configurable block to run. Does not run if +config.eager_load+
4175
+ # set to false.
4176
+ #
4177
+ # source://railties//lib/rails/railtie/configuration.rb#60
4178
+ def before_eager_load(&block); end
4179
+
4180
+ # Second configurable block to run. Called before frameworks initialize.
4181
+ #
4182
+ # source://railties//lib/rails/railtie/configuration.rb#65
4183
+ def before_initialize(&block); end
4184
+
4185
+ # All namespaces that are eager loaded
4186
+ #
4187
+ # source://railties//lib/rails/railtie/configuration.rb#18
4188
+ def eager_load_namespaces; end
4189
+
4190
+ # @return [Boolean]
4191
+ #
4192
+ # source://railties//lib/rails/railtie/configuration.rb#85
4193
+ def respond_to?(name, include_private = T.unsafe(nil)); end
4194
+
4195
+ # Defines generic callbacks to run before #after_initialize. Useful for
4196
+ # Rails::Railtie subclasses.
4197
+ #
4198
+ # source://railties//lib/rails/railtie/configuration.rb#81
4199
+ def to_prepare(&blk); end
4200
+
4201
+ # Array of callbacks defined by #to_prepare.
4202
+ #
4203
+ # source://railties//lib/rails/railtie/configuration.rb#75
4204
+ def to_prepare_blocks; end
4205
+
4206
+ # Add directories that should be watched for change.
4207
+ # The key of the hashes should be directories and the values should
4208
+ # be an array of extensions to match in each directory.
4209
+ #
4210
+ # source://railties//lib/rails/railtie/configuration.rb#30
4211
+ def watchable_dirs; end
4212
+
4213
+ # Add files that should be watched for change.
4214
+ #
4215
+ # source://railties//lib/rails/railtie/configuration.rb#23
4216
+ def watchable_files; end
4217
+
4218
+ private
4219
+
4220
+ # source://railties//lib/rails/railtie/configuration.rb#90
4221
+ def method_missing(name, *args, &blk); end
4222
+
4223
+ class << self
4224
+ # Expose the eager_load_namespaces at "module" level for convenience.
4225
+ #
4226
+ # source://railties//lib/rails/railtie/configuration.rb#13
4227
+ def eager_load_namespaces; end
4228
+ end
4229
+ end
4230
+
4231
+ # Greatly inspired by Ara T. Howard's magnificent sekrets gem. 😘
4232
+ #
4233
+ # source://railties//lib/rails/secrets.rb#8
4234
+ class Rails::Secrets
4235
+ class << self
4236
+ # source://railties//lib/rails/secrets.rb#45
4237
+ def decrypt(data); end
4238
+
4239
+ # source://railties//lib/rails/secrets.rb#41
4240
+ def encrypt(data); end
4241
+
4242
+ # source://railties//lib/rails/secrets.rb#37
4243
+ def key; end
4244
+
4245
+ # source://railties//lib/rails/secrets.rb#24
4246
+ def parse(paths, env:); end
4247
+
4248
+ # source://railties//lib/rails/secrets.rb#49
4249
+ def read; end
4250
+
4251
+ # source://railties//lib/rails/secrets.rb#58
4252
+ def read_for_editing(&block); end
4253
+
4254
+ # Sets the attribute root
4255
+ #
4256
+ # @param value the value to set the attribute root to.
4257
+ #
4258
+ # source://railties//lib/rails/secrets.rb#22
4259
+ def root=(_arg0); end
4260
+
4261
+ # source://railties//lib/rails/secrets.rb#53
4262
+ def write(contents); end
4263
+
4264
+ private
4265
+
4266
+ # source://railties//lib/rails/secrets.rb#103
4267
+ def encryptor; end
4268
+
4269
+ # @raise [MissingKeyError]
4270
+ #
4271
+ # source://railties//lib/rails/secrets.rb#63
4272
+ def handle_missing_key; end
4273
+
4274
+ # source://railties//lib/rails/secrets.rb#73
4275
+ def key_path; end
4276
+
4277
+ # source://railties//lib/rails/secrets.rb#77
4278
+ def path; end
4279
+
4280
+ # source://railties//lib/rails/secrets.rb#81
4281
+ def preprocess(path); end
4282
+
4283
+ # source://railties//lib/rails/secrets.rb#67
4284
+ def read_key_file; end
4285
+
4286
+ # source://railties//lib/rails/secrets.rb#89
4287
+ def writing(contents); end
4288
+ end
4289
+ end
4290
+
4291
+ # source://railties//lib/rails/secrets.rb#9
4292
+ class Rails::Secrets::MissingKeyError < ::RuntimeError
4293
+ # @return [MissingKeyError] a new instance of MissingKeyError
4294
+ #
4295
+ # source://railties//lib/rails/secrets.rb#10
4296
+ def initialize; end
4297
+ end
4298
+
4299
+ # Implements the logic behind <tt>Rails::Command::NotesCommand</tt>. See <tt>rails notes --help</tt> for usage information.
4300
+ #
4301
+ # Annotation objects are triplets <tt>:line</tt>, <tt>:tag</tt>, <tt>:text</tt> that
4302
+ # represent the line where the annotation lives, its tag, and its text. Note
4303
+ # the filename is not stored.
4304
+ #
4305
+ # Annotations are looked for in comments and modulus whitespace they have to
4306
+ # start with the tag optionally followed by a colon. Everything up to the end
4307
+ # of the line (or closing ERB comment tag) is considered to be their text.
4308
+ #
4309
+ # source://railties//lib/rails/source_annotation_extractor.rb#13
4310
+ class Rails::SourceAnnotationExtractor
4311
+ # @return [SourceAnnotationExtractor] a new instance of SourceAnnotationExtractor
4312
+ #
4313
+ # source://railties//lib/rails/source_annotation_extractor.rb#85
4314
+ def initialize(tag); end
4315
+
4316
+ # Prints the mapping from filenames to annotations in +results+ ordered by filename.
4317
+ # The +options+ hash is passed to each annotation's +to_s+.
4318
+ #
4319
+ # source://railties//lib/rails/source_annotation_extractor.rb#137
4320
+ def display(results, options = T.unsafe(nil)); end
4321
+
4322
+ # If +file+ is the filename of a file that contains annotations this method returns
4323
+ # a hash with a single entry that maps +file+ to an array of its annotations.
4324
+ # Otherwise it returns an empty hash.
4325
+ #
4326
+ # source://railties//lib/rails/source_annotation_extractor.rb#125
4327
+ def extract_annotations_from(file, pattern); end
4328
+
4329
+ # Returns a hash that maps filenames under +dirs+ (recursively) to arrays
4330
+ # with their annotations.
4331
+ #
4332
+ # source://railties//lib/rails/source_annotation_extractor.rb#91
4333
+ def find(dirs); end
4334
+
4335
+ # Returns a hash that maps filenames under +dir+ (recursively) to arrays
4336
+ # with their annotations. Files with extensions registered in
4337
+ # <tt>Rails::SourceAnnotationExtractor::Annotation.extensions</tt> are
4338
+ # taken into account. Only files with annotations are included.
4339
+ #
4340
+ # source://railties//lib/rails/source_annotation_extractor.rb#99
4341
+ def find_in(dir); end
4342
+
4343
+ # Returns the value of attribute tag.
4344
+ #
4345
+ # source://railties//lib/rails/source_annotation_extractor.rb#83
4346
+ def tag; end
4347
+
4348
+ class << self
4349
+ # Prints all annotations with tag +tag+ under the root directories +app+,
4350
+ # +config+, +db+, +lib+, and +test+ (recursively).
4351
+ #
4352
+ # If +tag+ is <tt>nil</tt>, annotations with either default or registered tags are printed.
4353
+ #
4354
+ # Specific directories can be explicitly set using the <tt>:dirs</tt> key in +options+.
4355
+ #
4356
+ # Rails::SourceAnnotationExtractor.enumerate 'TODO|FIXME', dirs: %w(app lib), tag: true
4357
+ #
4358
+ # If +options+ has a <tt>:tag</tt> flag, it will be passed to each annotation's +to_s+.
4359
+ #
4360
+ # See SourceAnnotationExtractor#find_in for a list of file extensions that will be taken into account.
4361
+ #
4362
+ # This class method is the single entry point for the <tt>rails notes</tt> command.
4363
+ #
4364
+ # source://railties//lib/rails/source_annotation_extractor.rb#76
4365
+ def enumerate(tag = T.unsafe(nil), options = T.unsafe(nil)); end
4366
+ end
4367
+ end
4368
+
4369
+ # source://railties//lib/rails/source_annotation_extractor.rb#14
4370
+ class Rails::SourceAnnotationExtractor::Annotation < ::Struct
4371
+ # Returns a representation of the annotation that looks like this:
4372
+ #
4373
+ # [126] [TODO] This algorithm is simple and clearly correct, make it faster.
4374
+ #
4375
+ # If +options+ has a flag <tt>:tag</tt> the tag is shown as in the example above.
4376
+ # Otherwise the string contains just line and text.
4377
+ #
4378
+ # source://railties//lib/rails/source_annotation_extractor.rb#55
4379
+ def to_s(options = T.unsafe(nil)); end
4380
+
4381
+ class << self
4382
+ # source://railties//lib/rails/source_annotation_extractor.rb#15
4383
+ def directories; end
4384
+
4385
+ # source://railties//lib/rails/source_annotation_extractor.rb#35
4386
+ def extensions; end
4387
+
4388
+ # Registers additional directories to be included
4389
+ # Rails::SourceAnnotationExtractor::Annotation.register_directories("spec", "another")
4390
+ #
4391
+ # source://railties//lib/rails/source_annotation_extractor.rb#21
4392
+ def register_directories(*dirs); end
4393
+
4394
+ # Registers new Annotations File Extensions
4395
+ # Rails::SourceAnnotationExtractor::Annotation.register_extensions("css", "scss", "sass", "less", "js") { |tag| /\/\/\s*(#{tag}):?\s*(.*)$/ }
4396
+ #
4397
+ # source://railties//lib/rails/source_annotation_extractor.rb#41
4398
+ def register_extensions(*exts, &block); end
4399
+
4400
+ # Registers additional tags
4401
+ # Rails::SourceAnnotationExtractor::Annotation.register_tags("TESTME", "DEPRECATEME")
4402
+ #
4403
+ # source://railties//lib/rails/source_annotation_extractor.rb#31
4404
+ def register_tags(*additional_tags); end
4405
+
4406
+ # source://railties//lib/rails/source_annotation_extractor.rb#25
4407
+ def tags; end
4408
+ end
4409
+ end
4410
+
4411
+ # source://railties//lib/rails/test_unit/runner.rb#10
4412
+ module Rails::TestUnit; end
4413
+
4414
+ # source://railties//lib/rails/test_unit/runner.rb#105
4415
+ class Rails::TestUnit::CompositeFilter
4416
+ # @return [CompositeFilter] a new instance of CompositeFilter
4417
+ #
4418
+ # source://railties//lib/rails/test_unit/runner.rb#108
4419
+ def initialize(runnable, filter, patterns); end
4420
+
4421
+ # minitest uses === to find matching filters.
4422
+ #
4423
+ # source://railties//lib/rails/test_unit/runner.rb#115
4424
+ def ===(method); end
4425
+
4426
+ # Returns the value of attribute named_filter.
4427
+ #
4428
+ # source://railties//lib/rails/test_unit/runner.rb#106
4429
+ def named_filter; end
4430
+
4431
+ private
4432
+
4433
+ # source://railties//lib/rails/test_unit/runner.rb#130
4434
+ def derive_line_filters(patterns); end
4435
+
4436
+ # source://railties//lib/rails/test_unit/runner.rb#120
4437
+ def derive_named_filter(filter); end
4438
+ end
4439
+
4440
+ # source://railties//lib/rails/test_unit/runner.rb#141
4441
+ class Rails::TestUnit::Filter
4442
+ # @return [Filter] a new instance of Filter
4443
+ #
4444
+ # source://railties//lib/rails/test_unit/runner.rb#142
4445
+ def initialize(runnable, file, line); end
4446
+
4447
+ # source://railties//lib/rails/test_unit/runner.rb#147
4448
+ def ===(method); end
4449
+
4450
+ private
4451
+
4452
+ # source://railties//lib/rails/test_unit/runner.rb#159
4453
+ def definition_for(method); end
4454
+ end
4455
+
4456
+ # source://railties//lib/rails/test_unit/runner.rb#11
4457
+ class Rails::TestUnit::Runner
4458
+ # source://railties//lib/rails/test_unit/runner.rb#12
4459
+ def filters; end
4460
+
4461
+ class << self
4462
+ # source://railties//lib/rails/test_unit/runner.rb#15
4463
+ def attach_before_load_options(opts); end
4464
+
4465
+ # source://railties//lib/rails/test_unit/runner.rb#50
4466
+ def compose_filter(runnable, filter); end
4467
+
4468
+ # source://railties//lib/rails/test_unit/runner.rb#12
4469
+ def filters; end
4470
+
4471
+ # source://railties//lib/rails/test_unit/runner.rb#45
4472
+ def load_tests(argv); end
4473
+
4474
+ # source://railties//lib/rails/test_unit/runner.rb#20
4475
+ def parse_options(argv); end
4476
+
4477
+ # source://railties//lib/rails/test_unit/runner.rb#33
4478
+ def rake_run(argv = T.unsafe(nil)); end
4479
+
4480
+ # source://railties//lib/rails/test_unit/runner.rb#39
4481
+ def run(argv = T.unsafe(nil)); end
4482
+
4483
+ private
4484
+
4485
+ # source://railties//lib/rails/test_unit/runner.rb#83
4486
+ def default_test_exclude_glob; end
4487
+
4488
+ # source://railties//lib/rails/test_unit/runner.rb#79
4489
+ def default_test_glob; end
4490
+
4491
+ # source://railties//lib/rails/test_unit/runner.rb#59
4492
+ def extract_filters(argv); end
4493
+
4494
+ # source://railties//lib/rails/test_unit/runner.rb#95
4495
+ def list_tests(argv); end
4496
+
4497
+ # @return [Boolean]
4498
+ #
4499
+ # source://railties//lib/rails/test_unit/runner.rb#91
4500
+ def path_argument?(arg); end
4501
+
4502
+ # @return [Boolean]
4503
+ #
4504
+ # source://railties//lib/rails/test_unit/runner.rb#87
4505
+ def regexp_filter?(arg); end
4506
+ end
4507
+ end
4508
+
4509
+ # source://railties//lib/rails/test_unit/railtie.rb#6
4510
+ class Rails::TestUnitRailtie < ::Rails::Railtie; end
4511
+
4512
+ # source://railties//lib/rails/gem_version.rb#9
4513
+ module Rails::VERSION; end
4514
+
4515
+ # source://railties//lib/rails/gem_version.rb#10
4516
+ Rails::VERSION::MAJOR = T.let(T.unsafe(nil), Integer)
4517
+
4518
+ # source://railties//lib/rails/gem_version.rb#11
4519
+ Rails::VERSION::MINOR = T.let(T.unsafe(nil), Integer)
4520
+
4521
+ # source://railties//lib/rails/gem_version.rb#13
4522
+ Rails::VERSION::PRE = T.let(T.unsafe(nil), String)
4523
+
4524
+ # source://railties//lib/rails/gem_version.rb#15
4525
+ Rails::VERSION::STRING = T.let(T.unsafe(nil), String)
4526
+
4527
+ # source://railties//lib/rails/gem_version.rb#12
4528
+ Rails::VERSION::TINY = T.let(T.unsafe(nil), Integer)
4529
+
4530
+ # source://railties//lib/rails/welcome_controller.rb#5
4531
+ class Rails::WelcomeController < ::Rails::ApplicationController
4532
+ # source://railties//lib/rails/welcome_controller.rb#9
4533
+ def index; end
4534
+
4535
+ private
4536
+
4537
+ # source://actionview/7.0.4.3/lib/action_view/layouts.rb#328
4538
+ def _layout(lookup_context, formats); end
4539
+
4540
+ class << self
4541
+ # source://activesupport/7.0.4.3/lib/active_support/callbacks.rb#68
4542
+ def __callbacks; end
4543
+
4544
+ # source://actionview/7.0.4.3/lib/action_view/layouts.rb#209
4545
+ def _layout; end
4546
+
4547
+ # source://actionview/7.0.4.3/lib/action_view/layouts.rb#210
4548
+ def _layout_conditions; end
4549
+
4550
+ # source://actionpack/7.0.4.3/lib/action_controller/metal.rb#210
4551
+ def middleware_stack; end
4552
+ end
4553
+ end