X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/882700c5c8890ba28dc83a9dc526b7bc242a0278..f77a3c75bee528caaa6fc8e237ee6eaef704efe0:/app/models/map_bug.rb diff --git a/app/models/map_bug.rb b/app/models/map_bug.rb index 2ae110bf2..7094bfe5e 100644 --- a/app/models/map_bug.rb +++ b/app/models/map_bug.rb @@ -46,4 +46,20 @@ class MapBug < ActiveRecord::Base def visible return status != "hidden" end + + def author + self.comments.first.author + end + + def author_ip + self.comments.first.author_ip + end + + def author_id + self.comments.first.author_id + end + + def author_name + self.comments.first.author_name + end end