lib/taza/entity.rb in scudco-taza-0.8.6 vs lib/taza/entity.rb in scudco-taza-0.8.7
- old
+ new
@@ -40,10 +40,11 @@
@hash[key]
end
end
def to_hash
- @hash
+ cloned_hash = @hash.clone
+ cloned_hash.key_strings_to_symbols!
end
private
def create_method(name, &block) # :nodoc:
self.class.send(:define_method, name, &block)