search for: additional_conds

Displaying 1 result from an estimated 1 matches for "additional_conds".

2005 Dec 29
7
belongs_to causing NoMethodError exceptions ... ?
...rd_hash = MiscUtils.hexdigest(@password) unless @password.nil? end def after_save @password = nil @password_confirmation = nil end def try_to_login self.class.lookup(self.email_address, @password) end # Class methods def self.lookup(email_address, password, additional_conds = '''') hashed_password = MiscUtils.hexdigest(password) begin find( :first, :conditions => ["email_address = ? and password_hash = ?" + additional_conds, email_address, hashed_password]) rescue retur...