lib/pay.rb in pay-6.1.0 vs lib/pay.rb in pay-6.1.1
- old
+ new
@@ -35,9 +35,13 @@
mattr_accessor :business_address
mattr_accessor :business_name
mattr_accessor :business_logo
mattr_accessor :support_email
+ def self.support_email=(value)
+ @@support_email = value.is_a?(Mail::Address) ? value : Mail::Address.new(value)
+ end
+
mattr_accessor :automount_routes
@@automount_routes = true
mattr_accessor :default_product_name
@@default_product_name = "default"