Sha256: b42fe7aa1d5637915d57c132baa197ebb79f419e30a3499898c7922558def800
Contents?: true
Size: 710 Bytes
Versions: 6
Compression:
Stored size: 710 Bytes
Contents
module Admin::OrdersHelper # Renders all the txn partials that may have been specified in the extensions def render_txn_partials(order) @txn_partials.inject("") do |extras, partial| extras += render :partial => partial, :locals => {:payment => order} end end # Renders all the extension partials that may have been specified in the extensions def event_links links = [] @order_events.sort.each do |event| links << (button_link_to t(event), fire_admin_order_url(@order, :e => event), {:method => :put, :confirm => "Are you sure you want to #{event}?"}) if @order.send("can_#{event}?") end return "" if links.empty? links.join(' ') end end
Version data entries
6 entries across 6 versions & 2 rubygems