I have a situation where I need information from my controller in my
models.
For example, I want to send out an email to a user notifying them that
their user information was modified. I only want to do this if this is
done in the admin section. In my controller I set a variable called
@admin = true.
How can I get the value of that @admin variable without having to pass
in the controller object every time I create a new ActiveRecord object?
Thanks for your help.