application.rb 1.0 KB

12345678910111213141516171819202122232425262728293031
  1. require_relative "boot"
  2. require "rails/all"
  3. # Require the gems listed in Gemfile, including any gems
  4. # you've limited to :test, :development, or :production.
  5. Bundler.require(*Rails.groups)
  6. module InigoValentin
  7. class Application < Rails::Application
  8. # Initialize configuration defaults for originally generated Rails version.
  9. config.load_defaults 6.1
  10. # Configuration for the application, engines, and railties goes here.
  11. #
  12. # These settings can be overridden in specific environments using the files
  13. # in config/environments, which are processed later.
  14. #
  15. # config.time_zone = "Central Time (US & Canada)"
  16. # config.eager_load_paths << Rails.root.join("extras")
  17. config.assets.paths << Rails.root.join("app", "assets", "images")
  18. # Hack for allowing SVG files. While this hack is here, we should **not**
  19. # allow arbitrary SVG uploads. https://github.com/rails/rails/issues/34665
  20. ActiveStorage::Engine.config
  21. .active_storage
  22. .content_types_to_serve_as_binary
  23. .delete('image/svg+xml')
  24. end
  25. end