On 25 Mar 2011, at 20:51, Taylor Strait <[email protected]> wrote:

> Hi Fred, thanks for the reply. Does rails execute validations when 
> simply showing the object? My assumption is that validations were only 
> called before_create.
> 
The validations aren't run, but when you do

validates_inclusion_of :foo, :in => bar

then ruby does have to evaluate all those arguments in order to call 
validates_inclusion_of an setup the validation

Fred

> Taylor
> 
> -- 
> 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.
> 

-- 
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.

Reply via email to