breaking the mapping_policy

This commit is contained in:
Connor Turland 2016-03-24 23:29:08 -07:00
parent fc1dc591f3
commit c6f1e3cc4a

View file

@ -7,9 +7,9 @@ class API::RestfulController < ActionController::Base
load_and_authorize_resource only: [:show, :update, :destroy]
def create
authorize resource_class
instantiate_resource
resource.user = current_user
authorize resource_class
create_action
respond_with_resource
end