search for: some_player

Displaying 1 result from an estimated 1 matches for "some_player".

2006 Feb 09
6
Can I protect access to a relationship?
...quot;, :foreign_key => "opp1_id" belongs_to :opp2, :class_name => "Player", :foreign_key => "opp2_id" belongs_to :winner, :class_name => "Player", :foreign_key => "winner_id" end Can I prevent code from doing this? @match.winner = @some_player You can protect attributes from mass assignment, but that''s not good enough in this case.. Jeroen