cancancan fix
This commit is contained in:
parent
da278491b1
commit
c668cc1ab9
1 changed files with 1 additions and 1 deletions
|
@ -2,7 +2,7 @@ class OrdersController < ApplicationController
|
||||||
include ActionView::Helpers::NumberHelper
|
include ActionView::Helpers::NumberHelper
|
||||||
include ApplicationHelper
|
include ApplicationHelper
|
||||||
|
|
||||||
load_and_authorize_resource :user
|
load_resource :user
|
||||||
load_and_authorize_resource :order, through: :user, shallow: true
|
load_and_authorize_resource :order, through: :user, shallow: true
|
||||||
|
|
||||||
def new
|
def new
|
||||||
|
|
Loading…
Reference in a new issue