[Rails] adding an association to the logine_engine user model

Dion Hewson dionhewson at gmail.com
Sat Sep 2 14:32:47 GMT 2006


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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060902/d17c2d4c/attachment-0001.html


More information about the Rails mailing list