X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/7c98b41cc89068d049a18f8738276f19cd47095e..85d17f257c338f668a1d17d9fc62a2f48ec84230:/app/models/note.rb 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