Class: ActsAsRelatable::Relationship

Inherits:
ActiveRecord::Base
  • Object
show all
Defined in:
lib/acts_as_relatable/relationship.rb

Class Method Summary collapse

Class Method Details

.make_between(relator, related, bothsided = true) ⇒ Object

This method relates two object together



13
14
15
# File 'lib/acts_as_relatable/relationship.rb', line 13

def self.make_between(relator, related, bothsided=true)
  relator.relates_to!(related, bothsided)
end