Sha256: 01d77745dec76dd10d522cebc088a7617ec37fbb892e19b56ec7b63f424e3cba
Contents?: true
Size: 565 Bytes
Versions: 36
Compression:
Stored size: 565 Bytes
Contents
# frozen_string_literal: true require "active_model" require "rails" module ActiveModel class Railtie < Rails::Railtie # :nodoc: config.eager_load_namespaces << ActiveModel config.active_model = ActiveSupport::OrderedOptions.new initializer "active_model.secure_password" do ActiveModel::SecurePassword.min_cost = Rails.env.test? end initializer "active_model.i18n_customize_full_message" do ActiveModel::Errors.i18n_customize_full_message = config.active_model.delete(:i18n_customize_full_message) || false end end end
Version data entries
36 entries across 36 versions & 4 rubygems