How do I tell if rails is running under a web server, as opposed to a script or irb?
For context: I’m tracking an ActiveRecord object, and I want to email alerts if the objects changes, but only if the changes came through the web interface.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
I’ve found something that works, though it’s not very pretty