instantiate_resource
This commit is contained in:
parent
b6fac7d49b
commit
530a16cadb
1 changed files with 1 additions and 1 deletions
|
@ -9,7 +9,7 @@ class API::RestfulController < ActionController::Base
|
||||||
|
|
||||||
def create
|
def create
|
||||||
authorize resource_class
|
authorize resource_class
|
||||||
instantiate_resouce
|
instantiate_resource
|
||||||
resource.user = current_user
|
resource.user = current_user
|
||||||
create_action
|
create_action
|
||||||
respond_with_resource
|
respond_with_resource
|
||||||
|
|
Loading…
Reference in a new issue