cancancan fix

This commit is contained in:
benji 2015-08-31 15:35:59 +02:00
parent da278491b1
commit c668cc1ab9

View file

@ -2,7 +2,7 @@ class OrdersController < ApplicationController
include ActionView::Helpers::NumberHelper
include ApplicationHelper
load_and_authorize_resource :user
load_resource :user
load_and_authorize_resource :order, through: :user, shallow: true
def new