Sha256: 2c0717090019a4b0e8ae22fcd230a459b96ca12dcb2f0954efe911caff3ac92f
Contents?: true
Size: 480 Bytes
Versions: 1
Compression:
Stored size: 480 Bytes
Contents
module Datamapper4rails module IdentityMaps 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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
datamapper4rail-0.2.0 | lib/datamapper4rails/identity_maps.rb |