this may make it work
This commit is contained in:
parent
c6f1e3cc4a
commit
b36d5df6cb
1 changed files with 1 additions and 1 deletions
|
@ -9,7 +9,7 @@ class API::RestfulController < ActionController::Base
|
||||||
def create
|
def create
|
||||||
instantiate_resource
|
instantiate_resource
|
||||||
resource.user = current_user
|
resource.user = current_user
|
||||||
authorize resource_class
|
authorize resource
|
||||||
create_action
|
create_action
|
||||||
respond_with_resource
|
respond_with_resource
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue