Is there a good way to see if a class is being executed inside rails? I
have common code that isn’t always run from inside rails, if it’s not
rails I need to establish an active record connection manually. Is
good way to see if the application is rails?