Class: SportDb::Model::Pool

Inherits:
ActiveRecord::Base
  • Object
show all
Defined in:
lib/sportdb/play/models/pool.rb

Instance Method Summary collapse

Instance Method Details

#full_titleObject



23
24
25
26
# File 'lib/sportdb/play/models/pool.rb', line 23

def full_title
  ####    "#{title} #{event.title}#{fix? ? ' Fix' : ''}"
  "#{title} #{event.title}"
end

#playersObject

rename to users from players??



18
# File 'lib/sportdb/play/models/pool.rb', line 18

has_many :players, :through => :plays, :source => :user

#team3?Boolean

tip for 3rd place?

Returns:

  • (Boolean)


29
30
31
# File 'lib/sportdb/play/models/pool.rb', line 29

def team3?    # tip for 3rd place?
  event.team3 == true
end