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.1.rc2 lib/active_model/railtie.rb
activemodel-5.0.1.rc1 lib/active_model/railtie.rb
activemodel-5.0.0.1 lib/active_model/railtie.rb
activemodel-4.2.7.1 lib/active_model/railtie.rb
activemodel-4.2.7 lib/active_model/railtie.rb
activemodel-4.1.16 lib/active_model/railtie.rb
activemodel-4.1.16.rc1 lib/active_model/railtie.rb
activemodel-4.2.7.rc1 lib/active_model/railtie.rb
activemodel-5.0.0 lib/active_model/railtie.rb
activemodel-5.0.0.rc2 lib/active_model/railtie.rb
activemodel-5.0.0.racecar1 lib/active_model/railtie.rb
activemodel-5.0.0.rc1 lib/active_model/railtie.rb
ish_lib_manager-0.0.1 test/dummy/vendor/bundle/ruby/2.3.0/gems/activemodel-4.2.6/lib/active_model/railtie.rb
activemodel-5.0.0.beta4 lib/active_model/railtie.rb
activemodel-4.1.15 lib/active_model/railtie.rb
activemodel-4.2.6 lib/active_model/railtie.rb
activemodel-4.1.15.rc1 lib/active_model/railtie.rb
activemodel-4.2.6.rc1 lib/active_model/railtie.rb
activemodel-4.1.14.2 lib/active_model/railtie.rb
activemodel-4.2.5.2 lib/active_model/railtie.rb