lib/exvo_auth/config.rb in exvo-auth-0.9.2 vs lib/exvo_auth/config.rb in exvo-auth-0.9.3

- old
+ new

@@ -18,29 +18,26 @@ def self.client_id=(client_id) @@client_id = client_id end def self.client_id - @@client_id + @@client_id ||= nil end def self.client_secret=(client_secret) @@client_secret = client_secret end def self.client_secret - @@client_secret + @@client_secret ||= nil end # Set this to false during development ONLY! def self.require_ssl=(require_ssl) @@require_ssl = require_ssl end def self.require_ssl - if @@require_ssl.nil? - @@require_ssl = true - else - @@require_ssl - end + @@require_ssl = true unless defined?(@@require_ssl) + @@require_ssl end end