metamaps--metamaps/app/helpers/devise_helper.rb
2017-11-25 11:23:47 -08:00

11 lines
196 B
Ruby

# frozen_string_literal: true
module DeviseHelper
def devise_error_messages!
resource.errors.to_a[0]
end
def devise_error_messages?
resource.errors.empty? ? false : true
end
end