X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/3a654c89197b40f4a623c0dd33b87b415623d97d..85d17f257c338f668a1d17d9fc62a2f48ec84230:/app/models/note.rb?ds=inline diff --git a/app/models/note.rb b/app/models/note.rb index 892ada1aa..a2937074c 100644 --- a/app/models/note.rb +++ b/app/models/note.rb @@ -72,17 +72,4 @@ class Note < ActiveRecord::Base def author_name self.comments.first.author_name end - - # Custom JSON output routine for notes - def to_json(options = {}) - super options.reverse_merge( - :methods => [ :lat, :lon ], - :only => [ :id, :status, :created_at ], - :include => { - :comments => { - :only => [ :event, :author_name, :created_at, :body ] - } - } - ) - end end