Commit 463b5d7 1 parent c2e8658 commit 463b5d7 Copy full SHA for 463b5d7
File tree 3 files changed +4
-37
lines changed
3 files changed +4
-37
lines changed Original file line number Diff line number Diff line change
1
+ * Remove deprecated ` serve_static_assets ` configuration.
2
+
3
+ * Rafael Mendonça França*
4
+
1
5
* Use local variables in ` _form.html.erb ` partial generated by scaffold.
2
6
3
7
* Andrew Kozlov*
Original file line number Diff line number Diff line change 1
1
require 'active_support/core_ext/kernel/reporting'
2
- require 'active_support/core_ext/string/filters'
3
2
require 'active_support/file_update_checker'
4
- require 'active_support/deprecation'
5
3
require 'rails/engine/configuration'
6
4
require 'rails/source_annotation_extractor'
7
5
@@ -132,25 +130,6 @@ def colorize_logging=(val)
132
130
self . generators . colorize_logging = val
133
131
end
134
132
135
- # :nodoc:
136
- SERVE_STATIC_ASSETS_DEPRECATION_MESSAGE = <<-MSG . squish
137
- The configuration option `config.serve_static_assets` has been renamed
138
- to `config.serve_static_files` to clarify its role (it merely enables
139
- serving everything in the `public` folder and is unrelated to the asset
140
- pipeline). The `serve_static_assets` alias will be removed in Rails 5.0.
141
- Please migrate your configuration files accordingly.
142
- MSG
143
-
144
- def serve_static_assets
145
- ActiveSupport ::Deprecation . warn SERVE_STATIC_ASSETS_DEPRECATION_MESSAGE
146
- serve_static_files
147
- end
148
-
149
- def serve_static_assets = ( value )
150
- ActiveSupport ::Deprecation . warn SERVE_STATIC_ASSETS_DEPRECATION_MESSAGE
151
- self . serve_static_files = value
152
- end
153
-
154
133
def session_store ( *args )
155
134
if args . empty?
156
135
case @session_store
Original file line number Diff line number Diff line change @@ -320,22 +320,6 @@ def assert_utf8
320
320
end
321
321
end
322
322
323
- test "config.serve_static_assets is deprecated" do
324
- require "#{ app_path } /config/application"
325
-
326
- assert_deprecated ( /serve_static_assets/ ) do
327
- app . config . serve_static_assets = false
328
- end
329
-
330
- assert_not app . config . serve_static_files
331
- assert_deprecated ( /serve_static_assets/ ) { assert_not app . config . serve_static_assets }
332
-
333
- app . config . serve_static_files = true
334
-
335
- assert app . config . serve_static_files
336
- assert_deprecated ( /serve_static_assets/ ) { assert app . config . serve_static_assets }
337
- end
338
-
339
323
test "Use key_generator when secret_key_base is set" do
340
324
make_basic_app do |application |
341
325
application . secrets . secret_key_base = 'b3c631c314c0bbca50c1b2843150fe33'
You can’t perform that action at this time.
0 commit comments