diff --git a/lib/malone.rb b/lib/malone.rb index 1489fc1..8c0dad4 100644 --- a/lib/malone.rb +++ b/lib/malone.rb @@ -65,8 +65,9 @@ class Configuration attr_accessor :user attr_accessor :password attr_accessor :domain - attr_accessor :auth attr_accessor :tls + + attr :auth def initialize(options) opts = options.dup @@ -90,8 +91,7 @@ def initialize(options) end def auth=(val) - @auth = val - @auth = @auth.to_sym if @auth + @auth = val && val.to_sym end private