Sha256: b7db3f0c57060840edace7b5e1217dc0e44340bf8f0797c25a1f14a6ee1e901d
Contents?: true
Size: 599 Bytes
Versions: 1
Compression:
Stored size: 599 Bytes
Contents
module Mongoid module History module Attributes class Base attr_reader :trackable def initialize(trackable) @trackable = trackable end private def trackable_class @trackable_class ||= trackable.class end def aliased_fields @aliased_fields ||= trackable_class.aliased_fields end def changes_method trackable_class.history_trackable_options[:changes_method] end def changes trackable.send(changes_method) end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
mongoid-history-0.6.0 | lib/mongoid/history/attributes/base.rb |