Dave Sims wrote:
> If you know of documentation in addition to the api docs linked from my
> original post which might be helpful, feel free to include a link.

As mentioned, the API doc actually does explain this relatively clearly 
in this statement:

:conditions
  Specify the conditions that the associated object must meet in order 
to be included
  as a WHERE SQL fragment, such as authorized = 1.

The :conditions option applies to the associated object as a WHERE SQL 
fragment. There is no mention of any validation, or referential 
integrity. Rather it is a "filter" on the association. It simply 
determines whether or not the referenced object is returned.

If you need validation of the association, then use validation. 
ActiveRecord provides reasonably extensive validation support. That, 
along with database referential integrity, is the right place for 
ensuring validity.
-- 
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 rubyonrails-t...@googlegroups.com.
To unsubscribe from this group, send email to 
rubyonrails-talk+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to