> Does anyone know a good way for a Model to be aware of which
> Controller is calling it?  For example, I have an after_find method
> that should always be called unless the Controller is the
> 'FooController'.

This doesn't sound like such a good idea. Isn't the whole point of the
MVC architecture is that the models are separate from the controller?

SH

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