Class: Softwear::SpecDumpController
- Inherits:
-
ApplicationController
- Object
- ActionController::Base
- ApplicationController
- Softwear::SpecDumpController
- Includes:
- Library::SpecDump
- Defined in:
- app/controllers/softwear/spec_dump_controller.rb
Instance Method Summary collapse
Methods included from Library::SpecDump
Instance Method Details
#dump ⇒ Object
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 |