Files
old-roraccounting/app/controllers/concerns/response.rb
2019-06-21 20:01:43 +02:00

10 lines
185 B
Ruby

module Response
def error_response(status)
render nothing: true, status: status
end
def json_response(object, status = :ok)
render json: object, status: status
end
end