Use defined? instead of Rails.env.development?