parent
38d49dedb8
commit
4b7cbf111f
2 changed files with 2 additions and 2 deletions
|
@ -140,7 +140,7 @@ class OrdersController < ApplicationController
|
|||
Resque.enqueue(UserNotifier, FoodsoftConfig.scope, 'received_order', @order.id)
|
||||
if current_user.role_orders? || current_user.role_finance?
|
||||
redirect_to @order
|
||||
elsif current_user.role_pickup?
|
||||
elsif current_user.role_pickups?
|
||||
redirect_to pickups_path
|
||||
else
|
||||
redirect_to receive_order_path(@order)
|
||||
|
|
|
@ -26,7 +26,7 @@ module ApplicationHelper
|
|||
|
||||
# Splits an IBAN into groups of 4 digits displayed with margins in between
|
||||
def format_iban(iban)
|
||||
iban.scan(/..?.?.?/).map { |item| content_tag(:span, item, style: "margin-right: 0.5em;") }.join.html_safe
|
||||
iban && iban.scan(/..?.?.?/).map { |item| content_tag(:span, item, style: "margin-right: 0.5em;") }.join.html_safe
|
||||
end
|
||||
|
||||
# Creates ajax-controlled-links for pagination
|
||||
|
|
Loading…
Reference in a new issue