breaking the mapping_policy
This commit is contained in:
parent
fc1dc591f3
commit
c6f1e3cc4a
1 changed files with 1 additions and 1 deletions
|
@ -7,9 +7,9 @@ class API::RestfulController < ActionController::Base
|
||||||
load_and_authorize_resource only: [:show, :update, :destroy]
|
load_and_authorize_resource only: [:show, :update, :destroy]
|
||||||
|
|
||||||
def create
|
def create
|
||||||
authorize resource_class
|
|
||||||
instantiate_resource
|
instantiate_resource
|
||||||
resource.user = current_user
|
resource.user = current_user
|
||||||
|
authorize resource_class
|
||||||
create_action
|
create_action
|
||||||
respond_with_resource
|
respond_with_resource
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue