Method: Augmentor::ActiveRecord::ClassMethods#augment

Defined in:
lib/augmentor.rb

#augment(*args) ⇒ Object



11
12
13
14
15
16
# File 'lib/augmentor.rb', line 11

def augment(*args)
  validate_augmentor_args(args)
  klass, options, klass_name = parse_augmentor_args(args)
  belongs_to klass, options
  validates_presence_of :"#{klass}"
end