Sha256: d26fcd8278bab27965606cd9a1df5ec4f97e2a8ff0e9444d42cb96f764559c84

Contents?: true

Size: 280 Bytes

Versions: 187

Compression:

Stored size: 280 Bytes

Contents

require "active_model"
require "rails"

module ActiveModel
  class Railtie < Rails::Railtie # :nodoc:
    config.eager_load_namespaces << ActiveModel

    initializer "active_model.secure_password" do
      ActiveModel::SecurePassword.min_cost = Rails.env.test?
    end
  end
end

Version data entries

187 entries across 179 versions & 12 rubygems

Version Path
activemodel-5.0.0.beta3 lib/active_model/railtie.rb
activemodel-5.0.0.beta2 lib/active_model/railtie.rb
activejob-lock-0.0.2 rails/activemodel/lib/active_model/railtie.rb
activemodel-5.0.0.beta1.1 lib/active_model/railtie.rb
activemodel-4.2.5.1 lib/active_model/railtie.rb
activemodel-4.1.14.1 lib/active_model/railtie.rb
angular-rails4-templates-0.4.1 vendor/ruby/2.1.0/gems/activemodel-4.2.4/lib/active_model/railtie.rb
angular-rails4-templates-0.4.1 vendor/ruby/2.1.0/gems/activemodel-4.1.13/lib/active_model/railtie.rb
angular-rails4-templates-0.4.0 vendor/ruby/2.1.0/gems/activemodel-4.2.4/lib/active_model/railtie.rb
angular-rails4-templates-0.4.0 vendor/ruby/2.1.0/gems/activemodel-4.1.13/lib/active_model/railtie.rb
tdiary-4.2.1 vendor/bundle/ruby/2.2.0/gems/activemodel-4.2.5/lib/active_model/railtie.rb
tdiary-4.2.1 vendor/bundle/ruby/2.3.0/gems/activemodel-4.2.5/lib/active_model/railtie.rb
activemodel-5.0.0.beta1 lib/active_model/railtie.rb
angular-rails4-templates-0.3.0 vendor/ruby/2.1.0/gems/activemodel-4.1.13/lib/active_model/railtie.rb
angular-rails4-templates-0.3.0 vendor/ruby/2.1.0/gems/activemodel-4.2.4/lib/active_model/railtie.rb
activemodel-4.1.14 lib/active_model/railtie.rb
activemodel-4.2.5 lib/active_model/railtie.rb
activemodel-4.2.5.rc2 lib/active_model/railtie.rb
activemodel-4.1.14.rc2 lib/active_model/railtie.rb
activemodel-4.2.5.rc1 lib/active_model/railtie.rb