Ah, perfect. And apologies for posting to the dev list as I didn't  
see the users list.

Thx!

-jason

On Aug 23, 2006, at 6:22 AM, Eric Anderson wrote:

> Jason Lee wrote:
>> I just started a new project and we're used to always using a user's
>> email address as the login. The LoginEngine, however, has a login
>> field. I started poking thru the engine code to see how hard this
>> might be to extend/override and it sorta looks like it might be a
>> little involved.
>
> I just created a user.rb file in my application models directory that
> looks like this:
>
> class User < ActiveRecord::Base
>    include LoginEngine::AuthenticatedUser
>    before_validation do |r|
>      r.login = r.email
>    end
> end
>
> Seems to be working well so far.
>
> Eric
>
> _______________________________________________
> engine-developers mailing list
> [email protected]
> http://lists.rails-engines.org/listinfo.cgi/engine-developers-rails- 
> engines.org

_______________________________________________
engine-developers mailing list
[email protected]
http://lists.rails-engines.org/listinfo.cgi/engine-developers-rails-engines.org

Reply via email to