Module: Bigamy::ActiveRecord::ClassMethods
- Defined in:
- lib/bigamy.rb
Instance Method Summary collapse
- #belongs_to_mm(name, options = {}) ⇒ Object
- #divorce_everyone ⇒ Object
- #has_many_mm(name, options = {}) ⇒ Object
- #has_one_mm(name, options = {}) ⇒ Object
Instance Method Details
#belongs_to_mm(name, options = {}) ⇒ Object
99 100 101 |
# File 'lib/bigamy.rb', line 99 def belongs_to_mm name, = {} bigamy_associations[name] = ARBelongsTo.new(self, name, ) end |
#divorce_everyone ⇒ Object
94 95 96 97 |
# File 'lib/bigamy.rb', line 94 def divorce_everyone self.bigamy_associations.each {|k,v| v.divorce_everyone } self.bigamy_associations.clear end |