Skip to content

Instantly share code, notes, and snippets.

@bholzer bholzer/verbose.rb
Created Jan 4, 2018

What would you like to do?
def response_for_auth_fail(auth_error: :invalid)
messages = {
invalid: "Some error",
inactive: "Some error"
locked: "Some error"
{ auth_error: auth_error, message: messages[:auth_error] }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.