Class: FReCon::ParticipationsController
- Inherits:
-
Controller
show all
- Defined in:
- lib/frecon/controllers/participations_controller.rb
Class Method Summary
collapse
Methods inherited from Controller
could_not_find, delete, find_model, index, match_number_and_competition_to_match_id, model, model_name, process_json_request, show, show_attribute, team_number_to_team_id, update
Class Method Details
.competition(params) ⇒ Object
16
17
18
|
# File 'lib/frecon/controllers/participations_controller.rb', line 16
def self.competition(params)
show_attribute params, :competition
end
|
.create(request, params, post_data = nil) ⇒ Object
12
13
14
|
# File 'lib/frecon/controllers/participations_controller.rb', line 12
def self.create(request, params, post_data = nil)
super(request, params, post_data || team_number_to_team_id(process_json_request(request)))
end
|
.team(params) ⇒ Object
20
21
22
|
# File 'lib/frecon/controllers/participations_controller.rb', line 20
def self.team(params)
show_attribute params, :team
end
|