module Traka::IsTrakable::ClassMethods
Public Instance Methods
is_trakable(options={})
click to toggle source
# File lib/traka/is_trakable.rb, line 9 def is_trakable(options={}) cattr_accessor :traka_uuid self.traka_uuid = (options[: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