2016-09-24 03:00:46 +00:00
|
|
|
# frozen_string_literal: true
|
2017-11-06 16:15:18 +00:00
|
|
|
|
2014-10-24 15:30:26 +00:00
|
|
|
module DeviseHelper
|
|
|
|
def devise_error_messages!
|
2016-07-26 00:14:23 +00:00
|
|
|
resource.errors.to_a[0]
|
2014-10-24 15:30:26 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
def devise_error_messages?
|
|
|
|
resource.errors.empty? ? false : true
|
|
|
|
end
|
2016-07-26 00:14:23 +00:00
|
|
|
end
|