Skip to content
Browse files

Fixing issue with dumping Hash property.

  • Loading branch information...
1 parent 61a15ed commit 532f9dd1b93d744b77290ab33a6b5f9864056721 @waratuman waratuman committed
Showing with 11 additions and 2 deletions.
  1. +10 −1 lib/mls/properties/hash.rb
  2. +1 −1 mls.gemspec
View
11 lib/mls/properties/hash.rb
@@ -1,7 +1,16 @@
class MLS::Property::Hash < MLS::Property
def load(value) # from_json
- value.with_indifferent_access
+ case value
+ when Hash
+ value.with_indifferent_access
+ else
+ value
+ end
+ end
+
+ def dump(value)
+ value
end
end
View
2 mls.gemspec
@@ -3,7 +3,7 @@ $:.push File.expand_path("../lib", __FILE__)
Gem::Specification.new do |s|
s.name = "mls"
- s.version = '0.5.11'
+ s.version = '0.5.12'
s.authors = ["James R. Bracy", "Jon Bracy"]
s.email = ["james@42floors.com"]
s.homepage = "http://mls.42floors.com"

0 comments on commit 532f9dd

Please sign in to comment.
Something went wrong with that request. Please try again.