Sha256: 143322c05ce223d51e5889fad09c1dba149bdd888947c90e4e91722c74e5ebed

Contents?: true

Size: 291 Bytes

Versions: 10

Compression:

Stored size: 291 Bytes

Contents

module ActiveModel::Associations
  module InitializeExtension
    extend ActiveSupport::Concern

    included do
      prepend WithAssociationCache
    end

    module WithAssociationCache
      def initialize(*args)
        @association_cache = {}
        super
      end
    end
  end
end

Version data entries

10 entries across 10 versions & 2 rubygems

Version Path
eac_rails_utils-0.20.0 lib/active_model/associations/initialize_extension.rb
activemodel-associations-0.2.0 lib/active_model/associations/initialize_extension.rb
activemodel-associations-0.2.0.beta2 lib/active_model/associations/initialize_extension.rb
activemodel-associations-0.2.0.beta1 lib/active_model/associations/initialize_extension.rb
activemodel-associations-0.1.2 lib/active_model/associations/initialize_extension.rb
activemodel-associations-0.1.1 lib/active_model/associations/initialize_extension.rb
activemodel-associations-0.1.0 lib/active_model/associations/initialize_extension.rb
activemodel-associations-0.0.3 lib/active_model/associations/initialize_extension.rb
activemodel-associations-0.0.2 lib/active_model/associations/initialize_extension.rb
activemodel-associations-0.0.1 lib/active_model/associations/initialize_extension.rb