Sha256: 0138f72cfe4f410893a81350e76d598ae7e7fe7f4ade8b3c5d5adff2cc21256f

Contents?: true

Size: 310 Bytes

Versions: 2

Compression:

Stored size: 310 Bytes

Contents

module EacRailsUtils::Models::TablelessAssociations
  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

2 entries across 2 versions & 1 rubygems

Version Path
eac_rails_utils-0.22.0 lib/eac_rails_utils/models/tableless_associations/initialize_extension.rb
eac_rails_utils-0.21.0 lib/eac_rails_utils/models/tableless_associations/initialize_extension.rb