pass params to super

This commit is contained in:
maxwell 2011-01-21 11:09:15 -08:00
parent c5bf7b523f
commit 4bff854a04

View file

@ -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 ######################