lib/mls/properties/hash.rb in mls-0.6.0 vs lib/mls/properties/hash.rb in mls-0.6.1
- old
+ new
@@ -1,13 +1,8 @@
class MLS::Property::Hash < MLS::Property
def load(value) # from_json
- case value
- when Hash
- value.with_indifferent_access
- else
- value
- end
+ value && value.with_indifferent_access
end
def dump(value)
value
end