This should be in the if defined?('Rails') block