lib/kredis/attributes.rb in kredis-1.1.0 vs lib/kredis/attributes.rb in kredis-1.2.0
- old
+ new
@@ -95,9 +95,10 @@
private
def kredis_key_evaluated(key)
case key
when String then key
when Proc then key.call(self)
+ when Symbol then send(key)
end
end
def kredis_key_for_attribute(name)
"#{self.class.name.tableize.gsub("/", ":")}:#{extract_kredis_id}:#{name}"