Fred,
Thank you so much for the reply, and it was a great one. Did not know about 
that and you broadened my knowledge of extend vs. include and included. I 
had only been using modules to extend instance methods, but this opened up 
a new world. From your answer, I was able to remove 5 lines of code from 12 
models and can now manage the function from just one location (rather than 
having to fix 5 lines X 12 models--tedious!). 

Honored to have you respond, since I know that you have given many, many 
hours to responses over the years, and they have always been top quality 
and educational. How about writing a good Ruby book with some Rails 3.1 
goodness? You can call it "Fred's Ruby Tips & Tricks".  I'd buy it.

Carson Cole

-- 
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/-/-5wOyR06OoMJ.
To post to this group, send email to rubyonrails-talk@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