Sha256: 01d4464c320538b39fe3eb8b662e56ea2f06f65d1393a2154fdf88a843287e2b
Contents?: true
Size: 588 Bytes
Versions: 1
Compression:
Stored size: 588 Bytes
Contents
module Ixtlan module Core module DataMapper def self.included(base) warn 'deprecated: use ixtlan-optimistic instead' base.class_eval do def self.optimistic_get(updated_at, *args) if updated_at updated_at_date = new(:updated_at => updated_at).updated_at # TODO make it work with different PKs first(:id => args[0], :updated_at.gte => updated_at_date - 0.0005, :updated_at.lte => updated_at_date + 0.0005) end end end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
ixtlan-core-0.7.5 | lib/ixtlan/core/data_mapper.rb |