instantiate_resource

This commit is contained in:
Devin Howard 2016-03-25 10:26:32 +08:00
parent b6fac7d49b
commit 530a16cadb

View file

@ -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