mirror of
https://github.com/heartcombo/devise.git
synced 2022-11-09 12:18:31 -05:00
Update devise.rb
This commit is contained in:
parent
a9e87f067a
commit
06e0f8adca
1 changed files with 1 additions and 5 deletions
|
@ -363,11 +363,7 @@ module Devise
|
|||
def self.add_module(module_name, options = {})
|
||||
options.assert_valid_keys(:strategy, :model, :controller, :route, :no_input, :insert_at)
|
||||
|
||||
if insert_at = options[:insert_at]
|
||||
ALL.insert insert_at, module_name
|
||||
else
|
||||
ALL << module_name
|
||||
end
|
||||
ALL.insert (options[:insert_at] || -1), module_name
|
||||
|
||||
if strategy = options[:strategy]
|
||||
strategy = (strategy == true ? module_name : strategy)
|
||||
|
|
Loading…
Add table
Reference in a new issue