Sha256: b56209494f96a3854f32a42a45daa7d627551200bfa62135dda6fb96450a9202
Contents?: true
Size: 448 Bytes
Versions: 4
Compression:
Stored size: 448 Bytes
Contents
require_dependency "yawl_rails/application_controller" module YawlRails class StepsController < ApplicationController 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 end end
Version data entries
4 entries across 4 versions & 1 rubygems