Sha256: 3fa4f074b6d36e92212f877127f66afda34e7983f4626eef132e637d577cbe35
Contents?: true
Size: 448 Bytes
Versions: 8
Compression:
Stored size: 448 Bytes
Contents
module Ixtlan module Core module OptimisticDataMapper def self.included(base) base.class_eval do def optimistic_find(updated_at, *args) if updated_at updated_at = new(:updated_at => updated_at).updated_at # TODO make it work with different PKs first(:id => args[0], :updated_at => updated_at) end end end end end end end
Version data entries
8 entries across 8 versions & 1 rubygems