lib/unleash/context.rb in unleash-3.2.5 vs lib/unleash/context.rb in unleash-4.0.0
- old
+ new
@@ -26,10 +26,10 @@
normalized_name = underscore(name).to_sym
if ATTRS.include? normalized_name
self.send(normalized_name)
else
- self.properties.fetch(normalized_name)
+ self.properties.fetch(normalized_name, nil) || self.properties.fetch(name.to_sym)
end
end
private