pass params to super
This commit is contained in:
parent
c5bf7b523f
commit
4bff854a04
1 changed files with 1 additions and 1 deletions
|
|
@ -61,7 +61,7 @@ class User < ActiveRecord::Base
|
|||
if conditions[:username] =~ /^([\w\.%\+\-]+)@([\w\-]+\.)+([\w]{2,})$/i # email regex
|
||||
conditions[:email] = conditions.delete(:username)
|
||||
end
|
||||
super
|
||||
super(conditions)
|
||||
end
|
||||
|
||||
######### Aspects ######################
|
||||
|
|
|
|||
Loading…
Reference in a new issue