From 4bff854a04bbd8c5b1d9ebb06ef83beb51df9d2d Mon Sep 17 00:00:00 2001 From: maxwell Date: Fri, 21 Jan 2011 11:09:15 -0800 Subject: [PATCH] pass params to super --- app/models/user.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/user.rb b/app/models/user.rb index 800246d49..fcc4ba3b5 100644 --- a/app/models/user.rb +++ b/app/models/user.rb @@ -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 ######################