diff --git a/app/models/notification_service.rb b/app/models/notification_service.rb index 4dd08ba..cd24a73 100644 --- a/app/models/notification_service.rb +++ b/app/models/notification_service.rb @@ -8,7 +8,7 @@ class NotificationService field :api_token, :type => String field :subdomain, :type => String field :sender_name, :type => String - + embedded_in :app, :inverse_of => :notification_service validate :check_params @@ -34,4 +34,8 @@ class NotificationService def configured? api_token.present? end + + def problem_url(problem) + "http://#{Errbit::Config.host}/apps/#{problem.app.id}/problems/#{problem.id}" + end end -- libgit2 0.21.2