lib/mls/models/listing.rb in mls-0.6.6 vs lib/mls/models/listing.rb in mls-0.6.7
- 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(:symbolize_keys => true).parse(MLS.get('/listings/amenities').body)
+ @amenities ||= Yajl::Parser.new.parse(MLS.get('/listings/amenities').body).map(&:to_sym)
end
end
end