lib/mls/models/listing.rb in mls-0.6.5 vs lib/mls/models/listing.rb in mls-0.6.6

- old
+ new

@@ -254,10 +254,10 @@ response = MLS.get("/listings/calculate", :filters => filters, :operation => operation, :column => column, :group => group) MLS::Parser.extract_attributes(response.body)[:listings] end def amenities - @amenities ||= Yajl::Parser.new.parse(MLS.get('/listings/amenities').body).map(&:to_sym) + @amenities ||= Yajl::Parser.new(:symbolize_keys => true).parse(MLS.get('/listings/amenities').body) end end end