app/models/relationship.rb in your_platform-0.0.2 vs app/models/relationship.rb in your_platform-1.0.0
- old
+ new
@@ -8,10 +8,10 @@
# is: Brother relationship.is relationship.name
# of: Sue relationship.user2 relationship.of
#
class Relationship < ActiveRecord::Base
- attr_accessible :user1, :user2, :name, :who, :is, :of, :who_by_title, :of_by_title
+ attr_accessible :user1, :user2, :name, :who, :is, :of, :who_by_title, :of_by_title if defined? attr_accessible
belongs_to :user1, class_name: "User", inverse_of: :relationships_as_first_user
belongs_to :user2, class_name: "User", inverse_of: :relationships_as_second_user
# John is the brother of Sue.