Class: Mongoid::History::Attributes::Base

Inherits:
Object
  • Object
show all
Defined in:
lib/mongoid/history/attributes/base.rb

Direct Known Subclasses

Create, Destroy, Update

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#trackableObject (readonly)

Returns the value of attribute trackable.



5
6
7
# File 'lib/mongoid/history/attributes/base.rb', line 5

def trackable
  @trackable
end