class ActiveModel::StatusSerializer

Public Instance Methods

http_status() click to toggle source
# File lib/mongoid/serializer.rb, line 15
def http_status
  return 204 if object.respond_to?(:destroyed?) && object.destroyed?
  return 201 if object.respond_to?(:created?) && object.created?      
end