File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed
activestorage/lib/active_storage Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -82,6 +82,10 @@ class Engine < Rails::Engine # :nodoc:
82
82
end
83
83
84
84
initializer "active_storage.configs" do
85
+ config . before_initialize do |app |
86
+ ActiveStorage . touch_attachment_records = app . config . active_storage . touch_attachment_records != false
87
+ end
88
+
85
89
config . after_initialize do |app |
86
90
ActiveStorage . logger = app . config . active_storage . logger || Rails . logger
87
91
ActiveStorage . variant_processor = app . config . active_storage . variant_processor
@@ -144,7 +148,6 @@ class Engine < Rails::Engine # :nodoc:
144
148
ActiveStorage . variable_content_types = app . config . active_storage . variable_content_types || [ ]
145
149
ActiveStorage . web_image_content_types = app . config . active_storage . web_image_content_types || [ ]
146
150
ActiveStorage . content_types_to_serve_as_binary = app . config . active_storage . content_types_to_serve_as_binary || [ ]
147
- ActiveStorage . touch_attachment_records = app . config . active_storage . touch_attachment_records != false
148
151
ActiveStorage . service_urls_expire_in = app . config . active_storage . service_urls_expire_in || 5 . minutes
149
152
ActiveStorage . urls_expire_in = app . config . active_storage . urls_expire_in
150
153
ActiveStorage . content_types_allowed_inline = app . config . active_storage . content_types_allowed_inline || [ ]
You can’t perform that action at this time.
0 commit comments