Class: SportDb::Models::Pool

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

Instance Method Summary collapse

Instance Method Details

#full_titleObject



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

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

#playersObject

rename to users from players??



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

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

#team3?Boolean

tip for 3rd place?

Returns:

  • (Boolean)


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

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