mirror of
https://github.com/heartcombo/devise.git
synced 2022-11-09 12:18:31 -05:00
Merge pull request #3405 from Dinuz/master
Update find_message to accept scope
This commit is contained in:
commit
710efe557d
1 changed files with 1 additions and 1 deletions
|
@ -167,7 +167,7 @@ MESSAGE
|
|||
|
||||
# Get message for given
|
||||
def find_message(kind, options = {})
|
||||
options[:scope] = "devise.#{controller_name}"
|
||||
options[:scope] ||= "devise.#{controller_name}"
|
||||
options[:default] = Array(options[:default]).unshift(kind.to_sym)
|
||||
options[:resource_name] = resource_name
|
||||
options = devise_i18n_options(options)
|
||||
|
|
Loading…
Add table
Reference in a new issue