Sha256: d25761eea31b7d1bbd2414757306b784456ab7007538fb68ce79bd01a63c688d

Contents?: true

Size: 421 Bytes

Versions: 10

Compression:

Stored size: 421 Bytes

Contents

# frozen_string_literal: true

module EacRailsUtils
  module Models
    module TablelessAssociations
      module InitializeExtension
        extend ActiveSupport::Concern

        included do
          prepend WithAssociationCache
        end

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

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
eac_rails_utils-0.25.0 lib/eac_rails_utils/models/tableless_associations/initialize_extension.rb
eac_rails_utils-0.24.0 lib/eac_rails_utils/models/tableless_associations/initialize_extension.rb
eac_rails_utils-0.23.4 lib/eac_rails_utils/models/tableless_associations/initialize_extension.rb
eac_rails_utils-0.23.3 lib/eac_rails_utils/models/tableless_associations/initialize_extension.rb
eac_rails_utils-0.23.2 lib/eac_rails_utils/models/tableless_associations/initialize_extension.rb
eac_rails_utils-0.23.1 lib/eac_rails_utils/models/tableless_associations/initialize_extension.rb
eac_rails_utils-0.23.0 lib/eac_rails_utils/models/tableless_associations/initialize_extension.rb
eac_rails_utils-0.22.3 lib/eac_rails_utils/models/tableless_associations/initialize_extension.rb
eac_rails_utils-0.22.2 lib/eac_rails_utils/models/tableless_associations/initialize_extension.rb
eac_rails_utils-0.22.1 lib/eac_rails_utils/models/tableless_associations/initialize_extension.rb