Sha256: b2ad97dbd17bdd9c1bc660eb428e8dc845debb3fedfb53a7ca4445f59eba12b9
Contents?: true
Size: 381 Bytes
Versions: 7
Compression:
Stored size: 381 Bytes
Contents
require_dependency "faalis/application_controller" module Faalis class API::V1::WorkflowsController < ::APIController def index workflows = Faalis::Workflow.all @workflows = [] workflows.map do |workflow_instance| @workflows << workflow_instance.name.constantize.new(workflow_instance) end respond_with(@worklows) end end end
Version data entries
7 entries across 7 versions & 1 rubygems