Sha256: f43afba36c69ff08b6b4d03a8b464bb18527fc1214c855d8b5adff63631f2a12

Contents?: true

Size: 446 Bytes

Versions: 2

Compression:

Stored size: 446 Bytes

Contents

require_dependency "yawl_rails/application_controller"

module YawlRails
  class StepsController < ApplicationController
    def show
      @process = ::Yawl::Process.first(:id => 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

2 entries across 2 versions & 1 rubygems

Version Path
yawl_rails-0.1.1 app/controllers/yawl_rails/steps_controller.rb
yawl_rails-0.1.0 app/controllers/yawl_rails/steps_controller.rb