api: adjust serializers

This commit is contained in:
Connor Turland 2016-03-12 10:05:42 +11:00
parent 623b3c7ad7
commit fc1a7fd23d

View file

@ -17,6 +17,10 @@ class API::RestfulController < ActionController::Base
private
def resource_serializer
"new_#{resource_name}_serializer".camelize.constantize
end
def accessible_records
if current_user
visible_records