Sha256: 427635dcdfaf19201e580ebc57163ada337325f581a2d02f5d5e90a9ea37f62b
Contents?: true
Size: 500 Bytes
Versions: 6
Compression:
Stored size: 500 Bytes
Contents
module Ixtlan module Core module DataMapper def self.included(base) base.class_eval do attr_accessor :current_user 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
6 entries across 6 versions & 1 rubygems