Ruby on rails authlogic config (get rid of capitalization check)

Posted by bandhunt on Stack Overflow See other posts from Stack Overflow or by bandhunt
Published on 2010-05-21T05:18:09Z Indexed on 2010/05/21 5:20 UTC
Read the original article Hit count: 276

Filed under:
|
|

The authlogic rails gem is doing a LOWER in the sql query.

SELECT * FROM `users` WHERE (LOWER(`users`.email) = '[email protected]') LIMIT 1

I want to get rid of the LOWER part since it seems to be slowing down the query by quite a bit. I'd prefer to just lower the case in the code since this query seems to be expensive.

I'm not sure where to change this behavior in authlogic.

Thanks!

© Stack Overflow or respective owner

Related posts about ruby-on-rails

Related posts about authlogic