10 lines
185 B
Ruby
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
|