Sha256: 4c63f25f8956429af3cab20a34bd8a44ef980d89d0a290b2d87ceaf55e928846
Contents?: true
Size: 591 Bytes
Versions: 2
Compression:
Stored size: 591 Bytes
Contents
# frozen_string_literal: true class Combustion::Configurations::ActiveRecord def self.call(config) return unless defined?(ActiveRecord::Railtie) if ActiveRecord::VERSION::MAJOR >= 7 config.active_record.legacy_connection_handling = false end return unless ::ActiveRecord.constants.include?(:MassAssignmentSecurity) # Turn on ActiveRecord attribute whitelisting # This way the dummy app matches new rails apps re: this setting config.active_record.whitelist_attributes = true config.active_record.mass_assignment_sanitizer = :strict end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
combustion-1.3.5 | lib/combustion/configurations/active_record.rb |
combustion-1.3.4 | lib/combustion/configurations/active_record.rb |