Class: Softwear::SpecDumpController

Inherits:
ApplicationController show all
Includes:
Library::SpecDump
Defined in:
app/controllers/softwear/spec_dump_controller.rb

Instance Method Summary collapse

Methods included from Library::SpecDump

#expand_spec_dump, #spec_dump

Instance Method Details

#dumpObject



15
16
17
18
19
20
# File 'app/controllers/softwear/spec_dump_controller.rb', line 15

def dump
  type = params[:type].classify
  id   = params[:id].to_i

  render json: spec_dump(type.constantize.find(id))
end