Class: Mongoid::History::Attributes::Base
- Inherits:
-
Object
- Object
- Mongoid::History::Attributes::Base
- Defined in:
- lib/mongoid/history/attributes/base.rb
Instance Attribute Summary collapse
-
#trackable ⇒ Object
readonly
Returns the value of attribute trackable.
Instance Method Summary collapse
-
#initialize(trackable) ⇒ Base
constructor
A new instance of Base.
Constructor Details
#initialize(trackable) ⇒ Base
Returns a new instance of Base.
7 8 9 |
# File 'lib/mongoid/history/attributes/base.rb', line 7 def initialize(trackable) @trackable = trackable end |
Instance Attribute Details
#trackable ⇒ Object (readonly)
Returns the value of attribute trackable.
5 6 7 |
# File 'lib/mongoid/history/attributes/base.rb', line 5 def trackable @trackable end |