class RailsHost

  VALID_ENVS = %w{ dev demo staging api-sandbox }


  def self.env
    ENV['ENV']
  end

  def self.method_missing(method)
    env_name = method.to_s.gsub('_', '-').sub(/\?$/, '')
    if VALID_ENVS.include?(env_name)
      env == env_name
    else
      super
    end
  end


end
class RailsHost

  VALID_ENVS = %w{ dev demo staging api-sandbox gamma }


  def self.env
    ENV['ENV']
  end

  def self.method_missing(method)
    env_name = method.to_s.gsub('_', '-').sub(/\?$/, '')
    if VALID_ENVS.include?(env_name)
      env == env_name
    else
      super
    end
  end


end
Add 'gamma' environment to list of environments for RailsHost
Add 'gamma' environment to list of environments for RailsHost
