lib/cellular/configuration.rb in cellular-1.3.0 vs lib/cellular/configuration.rb in cellular-2.0.0
- old
+ new
@@ -2,8 +2,14 @@
class Configuration
attr_accessor :username, :password, :delivery_url, :backend
attr_accessor :country_code, :price, :sender
+
+ attr_accessor :logger
+
+ def logger
+ @logger ||= Object.const_defined?(:Rails) ? Rails.logger : Logger.new
+ end
end
end