Skip to content

Commit

Permalink
Hash model properties should be indifferent to access
Browse files Browse the repository at this point in the history
  • Loading branch information
waratuman committed Jul 27, 2013
1 parent 2517f62 commit 79390f5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 7 deletions.
7 changes: 1 addition & 6 deletions lib/mls/properties/hash.rb
@@ -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)
Expand Down
2 changes: 1 addition & 1 deletion mls.gemspec
Expand Up @@ -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"
Expand Down

0 comments on commit 79390f5

Please sign in to comment.