changed methods to remove Rails.env.development