| 12345678910111213141516171819202122232425262728293031323334353637383940 |
- require_relative "boot"
- require "rails/all"
- # Require the gems listed in Gemfile, including any gems
- # you've limited to :test, :development, or :production.
- Bundler.require(*Rails.groups)
- module InigoValentin
- class Application < Rails::Application
- # Initialize configuration defaults for originally generated Rails version.
- config.load_defaults 6.1
- # Configuration for the application, engines, and railties goes here.
- #
- # These settings can be overridden in specific environments using the files
- # in config/environments, which are processed later.
- #
- # config.time_zone = "Central Time (US & Canada)"
- # config.eager_load_paths << Rails.root.join("extras")
- config.assets.paths << Rails.root.join("app", "assets", "images")
-
- # Hack for allowing SVG files. While this hack is here, we should **not**
- # allow arbitrary SVG uploads. https://github.com/rails/rails/issues/34665
-
- ActiveStorage::Engine.config
- .active_storage
- .content_types_to_serve_as_binary
- .delete('image/svg+xml')
-
- ActiveStorage::Engine.config
- .active_storage
- .content_types_to_serve_as_binary
- .delete('text/html')
-
- ActiveStorage::Engine.config.active_storage.content_types_allowed_inline.append('text/html')
- print ActiveStorage::Engine.config.active_storage.content_types_to_serve_as_binary
- print ActiveStorage::Engine.config.active_storage.content_types_allowed_inline
- end
- end
|