Class: YawlRails::StepsController
- Inherits:
-
ApplicationController
- Object
- ApplicationController
- YawlRails::StepsController
- Defined in:
- app/controllers/yawl_rails/steps_controller.rb
Instance Method Summary collapse
Instance Method Details
#show ⇒ Object
5 6 7 8 9 10 11 12 13 |
# File 'app/controllers/yawl_rails/steps_controller.rb', line 5 def show @process = ::Yawl::Process.first(:name => params[:process_id]) @step = @process.steps_dataset.first(:id => params[:id]) respond_to do |format| format.html format.json { render :json => @step.to_hash.merge(:attempts => @step.attempts.map(&:to_hash)) } end end |