Sha256: 11e2b2d14659551f3ad9bf0e5b1427c49ddfd8babdf8f2ee6b19c2665345a12f
Contents?: true
Size: 305 Bytes
Versions: 4
Compression:
Stored size: 305 Bytes
Contents
module Admin::OrdersHelper # return the list of possible actions for the order based on its current state def action_links(order) state = Order::Status.from_value(order.status) return [] if state.nil? state = state.gsub(' ', '_').downcase.to_sym AVAILABLE_ACTIONS[state] end end
Version data entries
4 entries across 4 versions & 1 rubygems