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