Class: FReCon::DumpController

Inherits:
Object
  • Object
show all
Defined in:
lib/frecon/controllers/dump_controller.rb

Class Method Summary collapse

Class Method Details

.full(params) ⇒ Object



15
16
17
18
19
20
21
22
23
24
25
26
27
# File 'lib/frecon/controllers/dump_controller.rb', line 15

def self.full(params)
  competitions = Competition.all
  teams = Team.all
  matches = Match.all
  records = Record.all

  {
    "competitions" => competitions,
    "teams" => teams,
    "matches" => matches,
    "records" => records
  }.to_json
end