lib/braintree/configuration.rb in braintree-2.56.0 vs lib/braintree/configuration.rb in braintree-2.57.0

- old
+ new

@@ -41,9 +41,10 @@ end expectant_reader *([:environment] + READABLE_ATTRIBUTES) # Sets the Braintree environment to use. Valid values are <tt>:sandbox</tt> and <tt>:production</tt> def self.environment=(env) + env = env.to_sym unless [:development, :qa, :sandbox, :production].include?(env) raise ArgumentError, "#{env.inspect} is not a valid environment" end @environment = env end