module Cloned::DSL

Attributes

associations[R]

Public Instance Methods

after(&block) click to toggle source
# File lib/cloned/dsl.rb, line 9
def after(&block)
  define_method :declared_after, &block
end
association(association_id, options = {}) click to toggle source
# File lib/cloned/dsl.rb, line 19
def association(association_id, options = {})
  associations[association_id] = options
end
before(&block) click to toggle source
# File lib/cloned/dsl.rb, line 5
def before(&block)
  define_method :declared_before, &block
end
nullify(*attributes) click to toggle source
# File lib/cloned/dsl.rb, line 13
def nullify(*attributes)
  define_method :clearing_attributes do
    attributes
  end
end