lib/chuckle/client.rb in chuckle-1.0.2 vs lib/chuckle/client.rb in chuckle-1.0.3
- old
+ new
@@ -6,10 +6,10 @@
attr_accessor :options, :cache
def initialize(options = {})
self.options = DEFAULT_OPTIONS.dup
- options.each { |k, v| self.options[k] = v if v }
+ options.each { |k, v| self.options[k] = v if v != nil }
self.cache = Cache.new(self)
sanity!
end
#