class EtFakeCcd::Service::AuthApp

Private Instance Methods

render_error_for(command) click to toggle source
# File lib/et_fake_ccd/service/auth_app.rb, line 29
def render_error_for(command)
  if command.errors.include?(:one_time_password)
    {message: 'Invalid one-time password'}.to_json
  else
    {message: command.errors.map(&:message).join(', ') }
  end
end