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.
--
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-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---