Skip to content

Commit

Permalink
Fix for removed IssueObserver (Redmine 2.5) #5
Browse files Browse the repository at this point in the history
  • Loading branch information
thegcat committed Apr 20, 2014
1 parent 25cf88f commit bb854c9
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 22 deletions.
1 change: 0 additions & 1 deletion init.rb
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,5 @@

Rails.configuration.to_prepare do
require_dependency 'redmine_hoptoad_server/patches/issue_patch'
require_dependency 'redmine_hoptoad_server/patches/issue_observer_patch'
end

21 changes: 0 additions & 21 deletions lib/redmine_hoptoad_server/patches/issue_observer_patch.rb

This file was deleted.

5 changes: 5 additions & 0 deletions lib/redmine_hoptoad_server/patches/issue_patch.rb
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,11 @@ def self.included(base)
def skip_notification?
@skip_notification == true
end

def send_notification_with_skip_notification
send_notification_without_skip_notification unless skip_notification?
end
alias_method_chain :send_notification, :skip_notification
end
end
end
Expand Down

0 comments on commit bb854c9

Please sign in to comment.