Class: RaceCompetitor
- Inherits:
-
ActiveRecord::Base
- Object
- ActiveRecord::Base
- RaceCompetitor
- Defined in:
- app/models/race_competitor.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.find_or_create_by_name_and_club(name = "", club = nil) ⇒ Object
14 15 16 17 18 |
# File 'app/models/race_competitor.rb', line 14 def self.find_or_create_by_name_and_club(name="", club=nil) return if name.blank? club_id = club.nil? ? nil : club.id find_or_create_by_name_and_race_club_id(name, club_id) end |
Instance Method Details
#club ⇒ Object
10 11 12 |
# File 'app/models/race_competitor.rb', line 10 def club race_club end |