Skip to content

Commit

Permalink
Permitted various Rails-related classes for YAML deserialization
Browse files Browse the repository at this point in the history
  • Loading branch information
fbacall committed Jul 18, 2022
1 parent 999a407 commit c83ce40
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions config/application.rb
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,11 @@ class Application < Rails::Application
config.i18n.load_path += Dir[Rails.root.join('config', 'locales', 'overrides', '**', '*.{rb,yml}')] unless Rails.env.test?
config.i18n.available_locales = [:en]
config.i18n.default_locale = :en

config.active_record.yaml_column_permitted_classes = [
Symbol, Date, Time, ActiveSupport::TimeWithZone, ActiveSupport::TimeZone,
ActiveSupport::HashWithIndifferentAccess, BigDecimal
]
end

Config = OpenStruct.new(Rails.configuration.tess.with_indifferent_access)
Expand Down

0 comments on commit c83ce40

Please sign in to comment.