Sha256: 1ca749921988cb2e1a0bdbf33054cda626bdb4ff3cafee3af0238de6bc8c3df9
Contents?: true
Size: 1.48 KB
Versions: 2
Compression:
Stored size: 1.48 KB
Contents
require "active_record/railtie" module RailsApp class Application < Rails::Application config.root = File.expand_path("../../", __FILE__) config.i18n.enforce_available_locales = true if Rails.version.start_with?("7.1") && config.active_record.respond_to?(:yaml_column_permitted_classes=) config.active_record.yaml_column_permitted_classes = [ String, Symbol, Integer, NilClass, Float, Time, Date, FalseClass, Hash, Array, DateTime, TrueClass, BigDecimal, ActiveSupport::TimeWithZone, ActiveSupport::TimeZone, ActiveSupport::HashWithIndifferentAccess ] elsif !Rails.version.start_with?("5.0") && !Rails.version.start_with?("5.1") && config.active_record.respond_to?(:yaml_column_permitted_classes=) config.active_record.yaml_column_permitted_classes = %w[String Symbol Integer NilClass Float Time Date FalseClass Hash Array DateTime TrueClass BigDecimal ActiveSupport::TimeWithZone ActiveSupport::TimeZone ActiveSupport::HashWithIndifferentAccess] end if Rails.gem_version >= Gem::Version.new("7.1") config.active_support.cache_format_version = 7.1 end end end require "active_record/connection_adapters/sqlite3_adapter" if ActiveRecord::ConnectionAdapters::SQLite3Adapter.respond_to?(:represent_boolean_as_integer) ActiveRecord::ConnectionAdapters::SQLite3Adapter.represent_boolean_as_integer = true end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
audited-5.5.0 | spec/rails_app/config/application.rb |
audited-5.4.3 | spec/rails_app/config/application.rb |