Matt Jones wrote:
> The has_and_belongs_to_many stuff works, but it isn't capable of
> expanding.
> For example, if you wanted to add the kind of 'soft delete' you were
> thinking
> about at the beginning, habtm wouldn't work. With has_many :through,
> you can
> add the flag to ProfileUserMapping and then change
> the :profile_user_mappings
> assocation to:
>
> has_many :profile_user_mappings, :conditions => { :deleted => false }
>
> ...or similar, and now the :profiles and :users associations will only
> find records
> joined by a profile_user_mapping with deleted = false.
>
> --Matt Jones
Now I got what I needed exactly.
Thank you so much for guiding me in the proper way :)
--
Posted via http://www.ruby-forum.com/.
--~--~---------~--~----~------------~-------~--~----~
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 [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---