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

Version Path
minato_ruby_api_client-0.2.2 vendor/bundle/ruby/3.2.0/gems/activemodel-7.1.3.4/lib/active_model/railtie.rb
activemodel-8.0.1 lib/active_model/railtie.rb
activemodel-8.0.0.1 lib/active_model/railtie.rb
activemodel-7.2.2.1 lib/active_model/railtie.rb
activemodel-7.1.5.1 lib/active_model/railtie.rb
activemodel-8.0.0 lib/active_model/railtie.rb
activemodel-7.2.2 lib/active_model/railtie.rb
activemodel-7.1.5 lib/active_model/railtie.rb
activemodel-8.0.0.rc2 lib/active_model/railtie.rb
activemodel-7.2.1.2 lib/active_model/railtie.rb
activemodel-7.1.4.2 lib/active_model/railtie.rb
activemodel-8.0.0.rc1 lib/active_model/railtie.rb
activemodel-7.2.1.1 lib/active_model/railtie.rb
activemodel-7.1.4.1 lib/active_model/railtie.rb
activemodel-8.0.0.beta1 lib/active_model/railtie.rb
omg-activemodel-8.0.0.alpha9 lib/active_model/railtie.rb
omg-activemodel-8.0.0.alpha8 lib/active_model/railtie.rb
omg-activemodel-8.0.0.alpha7 lib/active_model/railtie.rb
omg-activemodel-8.0.0.alpha4 lib/active_model/railtie.rb
omg-activemodel-8.0.0.alpha3 lib/active_model/railtie.rb