Module: Wakari::Meta::Model::ClassMethods

Defined in:
lib/wakari/models/meta/model.rb

Instance Method Summary collapse

Instance Method Details

#acts_as_meta_class(translation_class, full_association_name, options) ⇒ Object



11
12
13
# File 'lib/wakari/models/meta/model.rb', line 11

def acts_as_meta_class(translation_class, full_association_name, options)
  has_many full_association_name, :class_name => "::Object::#{translation_class.name}", :inverse_of => :meta, :order => :created_at, :foreign_key => :meta_id
end