api: adjust serializers
This commit is contained in:
parent
623b3c7ad7
commit
fc1a7fd23d
1 changed files with 4 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue