lib/flexirest/configuration.rb in flexirest-1.3.5 vs lib/flexirest/configuration.rb in flexirest-1.3.6

- old
+ new

@@ -79,10 +79,11 @@ value = CGI::escape(value) if value.present? && !value.include?("%") @@password = value end def request_body_type(value = nil) + @request_body_type ||= nil if value.nil? if @request_body_type.nil? if value.nil? && superclass.respond_to?(:request_body_type) superclass.request_body_type else @@ -177,9 +178,10 @@ Flexirest::Logger.warn("DEPRECATION: The translator functionality of Flexirest has been replaced with proxy functionality, see https://github.com/andyjeffries/flexirest#proxying-apis for more information") unless value.nil? value ? @translator = value : @translator || nil end def proxy(value = nil) + @proxy ||= nil value ? @proxy = value : @proxy || nil end def _reset_configuration! @base_url = nil