module TerRor::Controller

Public Instance Methods

render_terrors(object) click to toggle source
# File lib/ter_ror/controller.rb, line 3
def render_terrors(object)
  render json: {errors: object.terrors}, status: :unprocessable_entity
end