]> git.openstreetmap.org Git - rails.git/commit
Remove nearby_place from the note model
authorKai Krueger <kakrueger@gmail.com>
Tue, 20 Nov 2012 23:10:07 +0000 (16:10 -0700)
committerTom Hughes <tom@compton.nu>
Sat, 1 Dec 2012 18:18:09 +0000 (18:18 +0000)
commit0a3aba7f891ba55a5500f02907cec15d44554eae
tree76cafcb5ffa5af8dbe906a83ff59f66872c4d402
parentfd6abf41bff7c4329f586945ee1b170e8e80792d
Remove nearby_place from the note model

Instead of storing the auto-generated meta information nearby_place
in the database, just look up the information on the fly when needed
and cache it for performance.
app/controllers/notes_controller.rb
app/views/notes/_note.json.jsonify
app/views/notes/_note.rss.builder
app/views/notes/_note.xml.builder
app/views/notes/feed.rss.builder
db/migrate/20121119165817_drop_nearby_place_from_notes.rb [new file with mode: 0644]