Class: SportDb::Model::Pool
- Inherits:
-
ActiveRecord::Base
- Object
- ActiveRecord::Base
- SportDb::Model::Pool
- Defined in:
- lib/sportdb/play/models/pool.rb
Instance Method Summary collapse
- #full_title ⇒ Object
-
#players ⇒ Object
rename to users from players??.
-
#team3? ⇒ Boolean
tip for 3rd place?.
Instance Method Details
#full_title ⇒ Object
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 |
#players ⇒ Object
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?
29 30 31 |
# File 'lib/sportdb/play/models/pool.rb', line 29 def team3? # tip for 3rd place? event.team3 == true end |