bhardin/ants

View on GitHub
app/models/tournament_player.rb

Summary

Maintainability
A
0 mins
Test Coverage
class TournamentPlayer < ActiveRecord::Base
  attr_accessible :player_id, :tournament_id
  attr_accessible :prestige, :match_points

  belongs_to :player
  belongs_to :tournament

  def name
      self.player.name
  end
end