You could do something like this on your model serializer (taking an example of User as the model):
class UserSerializer < ApplicationModelSerializer
attributes(*User.attribute_names.map(&:to_sym))
end
More information about ActiveRecord attribute_names can be found here: http://apidock.com/rails/ActiveRecord/AttributeMethods/attribute_names