1
0
Fork 0
mirror of https://github.com/heartcombo/devise.git synced 2022-11-09 12:18:31 -05:00

Update devise_controller.rb

This commit is contained in:
Massimiliano 2015-01-07 14:46:02 -05:00
parent c92ef26b94
commit 6c5323c574

View file

@ -167,7 +167,7 @@ MESSAGE
# Get message for given
def find_message(kind, options = {})
options[:scope] = "devise.#{controller_name}" unless options[:scope]
options[:scope] ||= "devise.#{controller_name}"
options[:default] = Array(options[:default]).unshift(kind.to_sym)
options[:resource_name] = resource_name
options = devise_i18n_options(options)