Sha256: 8e01424c0cf3ce27681e135922da56cac38935be796b2010b13ba5570058f856
Contents?: true
Size: 720 Bytes
Versions: 42
Compression:
Stored size: 720 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.deprecator", before: :load_environment_config do |app| app.deprecators[:active_model] = ActiveModel.deprecator end initializer "active_model.secure_password" do ActiveModel::SecurePassword.min_cost = Rails.env.test? end initializer "active_model.i18n_customize_full_message" do ActiveModel::Error.i18n_customize_full_message = config.active_model.delete(:i18n_customize_full_message) || false end end end
Version data entries
42 entries across 42 versions & 6 rubygems