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