You can also use the Rails delegate feature. I know you said you didn't want
to create the the AuthInfo model but I'm not sure there's any harm to it?

class User
has_one :auth_info
delegate :username, :username=, :password, :password=, :to => :auth_info
end

class AuthInfo
belongs_to :user
end

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To view this discussion on the web visit https://groups.google.com/d/msg/rubyonrails-talk/-/M8XV1aATM1EJ.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

Search Discussions

Discussion Posts

Previous

Related Discussions

Discussion Navigation
viewthread | post
posts ‹ prev | 2 of 2 | next ›
Discussion Overview
grouprubyonrails-talk @
categoriesrubyonrails
postedSep 19, '11 at 2:24p
activeSep 19, '11 at 2:33p
posts2
users2
websiterubyonrails.org
irc#RubyOnRails

2 users in discussion

Nicolas Sebrecht: 1 post Tim Shaffer: 1 post

People

Translate

site design / logo © 2022 Grokbase