How do you add associations to the User model when using the login_engine?? I have found that if I use my own User class in models/user.rb I will have to overwrite all the functions in the login_engines model this seems a redundat waste... but I need to add a has_one association to my User like so: class User < ActiveRecord::Base has_one :tile_stat, :dependent => :destroy end any tips? cheers dion -- www.blogsaic.com search, post, blog --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk -~----------~----~----~----~------~----~------~--~---
Dion Hewson
2006-Sep-02 14:42 UTC
Re: adding an association to the logine_engine user model
for anyone else!!! I found the answer at http://www.google.com/notebook/public/08633028492915060796/BDQY4SwoQx7zM7bMh class User < ActiveRecord::Base include LoginEngine::AuthenticatedUser has_many :log_entries end On 9/3/06, Dion Hewson <dionhewson-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> > How do you add associations to the User model when using the > login_engine?? > > I have found that if I use my own User class in models/user.rb I will have > to overwrite all the functions in the login_engines model > > this seems a redundat waste... > > but I need to add a has_one association to my User like so: > > class User < ActiveRecord::Base > has_one :tile_stat, :dependent => :destroy > end > > any tips? > > cheers > > dion > > -- > > www.blogsaic.com > search, post, blog >-- www.blogsaic.com search, post, blog --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk -~----------~----~----~----~------~----~------~--~---