Skip to content

Commit

Permalink
Refactor to initializer
Browse files Browse the repository at this point in the history
  • Loading branch information
laurajaime committed Jan 16, 2024
1 parent 29907bd commit 8bb456e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 0 additions & 2 deletions config/application.rb
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,6 @@ class Application < Rails::Application
config.active_record.default_timezone = :local
config.active_record.time_zone_aware_attributes = false

config.active_storage[:variable_content_types] << "image/webp"

# Make decorators available
config.to_prepare do
# activate Decidim LayoutHelper for the overriden views
Expand Down
3 changes: 3 additions & 0 deletions config/initializers/active_storage.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# frozen_string_literal: true

Rails.application.config.active_storage[:variable_content_types] << "image/webp"

0 comments on commit 8bb456e

Please sign in to comment.