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

Version Path
activemodel-6.0.6.1 lib/active_model/railtie.rb
activemodel-6.0.6 lib/active_model/railtie.rb
activemodel-6.0.5.1 lib/active_model/railtie.rb
activemodel-6.0.5 lib/active_model/railtie.rb
activemodel-6.0.4.8 lib/active_model/railtie.rb
activemodel-6.0.4.7 lib/active_model/railtie.rb
activemodel-6.0.4.6 lib/active_model/railtie.rb
activemodel-6.0.4.5 lib/active_model/railtie.rb
activemodel-6.0.4.4 lib/active_model/railtie.rb
activemodel-6.0.4.3 lib/active_model/railtie.rb
activemodel-6.0.4.2 lib/active_model/railtie.rb
activemodel-6.0.4.1 lib/active_model/railtie.rb
activemodel-6.0.4 lib/active_model/railtie.rb
activemodel-6.0.3.7 lib/active_model/railtie.rb
activemodel-6.0.3.6 lib/active_model/railtie.rb
activemodel-6.0.3.5 lib/active_model/railtie.rb
activemodel-6.0.3.4 lib/active_model/railtie.rb
activemodel-6.0.3.3 lib/active_model/railtie.rb
activemodel-6.0.3.2 lib/active_model/railtie.rb
activemodel-6.0.3.1 lib/active_model/railtie.rb