app/models/relationship.rb in acts-as-joinable-0.1.7.8 vs app/models/relationship.rb in acts-as-joinable-0.2
- old
+ new
@@ -1,5 +1,5 @@
-class ActsAsJoinable::Relationship < ActiveRecord::Base
+class Relationship < ActiveRecord::Base
acts_as_relationship
def swap_parent_and_child
old_parent_type = self.parent_type
old_parent_id = self.parent_id