Sha256: 079e1e665d54e32c3296f732f167e2d575cdadfc3c77822d03702bfaa0455da1
Contents?: true
Size: 308 Bytes
Versions: 6
Compression:
Stored size: 308 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_OPERATIONS[state] end end
Version data entries
6 entries across 6 versions & 1 rubygems