Module: DeviseHelper

Defined in:
app/helpers/devise_helper.rb

Instance Method Summary collapse

Instance Method Details

#devise_error_messages!Object

Retain this method for backwards compatibility, deprecated in favour of modifying the devise/shared/error_messages partial



6
7
8
9
10
11
12
13
14
15
16
17
# File 'app/helpers/devise_helper.rb', line 6

def devise_error_messages!
  ActiveSupport::Deprecation.warn <<-DEPRECATION.strip_heredoc
    [Devise] `DeviseHelper.devise_error_messages!`
    is deprecated and it will be removed in the next major version.
    To customize the errors styles please run `rails g devise:views` and modify the
    `devise/shared/error_messages` partial.
  DEPRECATION

  return "" if resource.errors.empty?

  render "devise/shared/error_messages", resource: resource
end