Advertisement
Guest User

Untitled

a guest
Apr 23rd, 2014
38
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.23 KB | None | 0 0
  1. $id, $name, $alliance_id, $points, $rank, $towns
  2.  
  3. $id, $name, $points, $towns, $members, $rank
  4.  
  5. # Player.rb
  6. belongs_to :alliance
  7.  
  8. # Alliance.rb
  9. has_many :players
  10.  
  11. def alliance
  12. Alliance.find_by_al_id(self.gr_alliance_id)
  13. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement