lib/moribus.rb
# Adds tracked behavior to a model
Adds tracked behavior to a model
Adds tracked behavior to a model
def acts_as_tracked(options = {})
      options.symbolize_keys!
      options.assert_valid_keys(:preceding_key, :by)
      include TrackedBehavior
      @preceding_key_column = options[:preceding_key]
      @parent_relation_keys = get_parent_relation_keys(options[:by])
    end
def acts_as_tracked ( options = { } ) options . symbolize_keys! options . assert_valid_keys ( :preceding_key , :by ) include TrackedBehavior @preceding_key_column = options [ :preceding_key ] @parent_relation_keys = get_parent_relation_keys ( options [ :by ] ) end
Adds tracked behavior to a model
Adds tracked behavior to a model
options