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]
|
||||
|
||||
def create
|
||||
authorize resource_class
|
||||
instantiate_resource
|
||||
resource.user = current_user
|
||||
authorize resource_class
|
||||
create_action
|
||||
respond_with_resource
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue