Module: Traka::IsTrakable::ClassMethods
- Defined in:
- lib/traka/is_trakable.rb
Instance Method Summary collapse
Instance Method Details
#is_trakable(options = {}) ⇒ Object
9 10 11 12 13 14 15 16 17 18 |
# File 'lib/traka/is_trakable.rb', line 9 def is_trakable(={}) cattr_accessor :traka_uuid self.traka_uuid = ([:traka_uuid] || :uuid).to_s before_create :set_uuid, :record_create before_update :set_uuid, :record_update before_destroy :set_uuid, :record_destroy include Traka::IsTrakable::LocalInstanceMethods end |