From b36d5df6cb3c61fa22d9b4dd35119f7570ba27ac Mon Sep 17 00:00:00 2001 From: Connor Turland Date: Thu, 24 Mar 2016 23:33:26 -0700 Subject: [PATCH] this may make it work --- app/controllers/api/restful_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/api/restful_controller.rb b/app/controllers/api/restful_controller.rb index 8ecad963..2dd00d4d 100644 --- a/app/controllers/api/restful_controller.rb +++ b/app/controllers/api/restful_controller.rb @@ -9,7 +9,7 @@ class API::RestfulController < ActionController::Base def create instantiate_resource resource.user = current_user - authorize resource_class + authorize resource create_action respond_with_resource end