Sha256: 9e927804ae063e18154807ba218c6fbb26394a2e8af5bf1ccc7c4deb03d398a7
Contents?: true
Size: 544 Bytes
Versions: 7
Compression:
Stored size: 544 Bytes
Contents
module Datamapper4rails module IdentityMaps warn "deprecated use the one from rack-datamapper instead" module Base def self.included(base) base.prepend_around_filter(IdentityMapFilter) end end class IdentityMapFilter def self.filter(controller) DataMapper.repository(:default) do |*block_args| if block_given? yield (*block_args) end end end end end end ::ActionController::Base.send(:include, Datamapper4rails::IdentityMaps::Base)
Version data entries
7 entries across 7 versions & 1 rubygems