Sha256: 99cb3deadb1fadb1ad77fa465b60a64e3cf305e2d2aed461c4daa6b0cc36cc16
Contents?: true
Size: 519 Bytes
Versions: 3
Compression:
Stored size: 519 Bytes
Contents
# lib/stair_master/concerns/ordering.rb ## ## ## module StairMaster module Concerns module Ordering extend ActiveSupport::Concern included do helper_method :available_steps end def available_steps @stair_master_available_steps ||= workflow_map.order.map{ |step_name| step_name if step_is_available?(step_name) }.compact end def step_is_available?(step_name) step = get_step_by_name(step_name) step.available?(self) end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
stair_master-0.0.3 | lib/stair_master/concerns/ordering.rb |
stair_master-0.0.2 | lib/stair_master/concerns/ordering.rb |
stair_master-0.0.1 | lib/stair_master/concerns/ordering.rb |