Permalink
Browse files

Hash model properties should be indifferent to access

  • Loading branch information...
1 parent 2517f62 commit 79390f5253c2b8bb40ae66ed28ac9378171f68a5 @waratuman waratuman committed Jul 27, 2013
Showing with 2 additions and 7 deletions.
  1. +1 −6 lib/mls/properties/hash.rb
  2. +1 −1 mls.gemspec
@@ -1,12 +1,7 @@
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)
View
@@ -3,7 +3,7 @@ $:.push File.expand_path("../lib", __FILE__)
Gem::Specification.new do |s|
s.name = "mls"
- s.version = '0.6.0'
+ s.version = '0.6.1'
s.authors = ["James R. Bracy", "Jon Bracy"]
s.email = ["james@42floors.com"]
s.homepage = "http://mls.42floors.com"

0 comments on commit 79390f5

Please sign in to comment.