Sha256: b636d1c5a9bae99f46dd9396e89a015ec1652b20cf2d5d075cd438e3d7177bbf
Contents?: true
Size: 507 Bytes
Versions: 16
Compression:
Stored size: 507 Bytes
Contents
module ChronoModel # Provides the TimeMachine API to non-temporal models that associate # temporal ones. # module TimeGate extend ActiveSupport::Concern module ClassMethods def as_of(time) all.as_of_time!(time) end include TimeMachine::HistoryMethods::Timeline end include Patches::AsOfTimeHolder def as_of(time) self.class.as_of(time).where(:id => self.id).first! end def timeline self.class.timeline(self) end end end
Version data entries
16 entries across 16 versions & 1 rubygems