Sha256: 0b232cba419cf4ab06708a90d874243ead30647bb0226b2628183cfc1bf3bc77

Contents?: true

Size: 379 Bytes

Versions: 30

Compression:

Stored size: 379 Bytes

Contents

# frozen_string_literal: true

require "store_model/ext/active_model/attributes"
require "store_model/ext/active_record/base"

module StoreModel # :nodoc:
  class Railtie < Rails::Railtie # :nodoc:
    config.to_prepare do |_app|
      ActiveSupport.on_load(:active_record) do
        ActiveModel::Attributes.prepend(Attributes)
        prepend(Base)
      end
    end
  end
end

Version data entries

30 entries across 30 versions & 1 rubygems

Version Path
store_model-2.3.0 lib/store_model/railtie.rb
store_model-2.2.0 lib/store_model/railtie.rb
store_model-2.1.2 lib/store_model/railtie.rb
store_model-2.1.1 lib/store_model/railtie.rb
store_model-2.1.0 lib/store_model/railtie.rb
store_model-2.0.1 lib/store_model/railtie.rb
store_model-2.0.0 lib/store_model/railtie.rb
store_model-1.6.2 lib/store_model/railtie.rb
store_model-1.6.1 lib/store_model/railtie.rb
store_model-1.6.0 lib/store_model/railtie.rb
store_model-1.5.1 lib/store_model/railtie.rb
store_model-1.5.0 lib/store_model/railtie.rb
store_model-1.4.0 lib/store_model/railtie.rb
store_model-1.3.0 lib/store_model/railtie.rb
store_model-1.2.0 lib/store_model/railtie.rb
store_model-1.1.0 lib/store_model/railtie.rb
store_model-1.0.0 lib/store_model/railtie.rb
store_model-0.13.0 lib/store_model/railtie.rb
store_model-0.12.0 lib/store_model/railtie.rb
store_model-0.11.1 lib/store_model/railtie.rb