X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/882700c5c8890ba28dc83a9dc526b7bc242a0278..6cb69b5e4be820b3f30d0f9eef9bbeb39fab5231:/app/models/map_bug.rb?ds=inline 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