metamaps--metamaps/app/helpers/devise_helper.rb
2016-09-24 11:00:46 +08:00

10 lines
195 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