#345: rollback changes, added test_after_commit gem

This commit is contained in:
Vokhmin Alexey V 2014-03-20 02:35:59 +04:00
parent ee412382f0
commit 4d7809ec14
3 changed files with 4 additions and 1 deletions

View File

@ -123,4 +123,5 @@ group :test do
gem 'shoulda-matchers'
gem 'mock_redis', '~> 0.11'
gem 'rake'
gem 'test_after_commit'
end

View File

@ -415,6 +415,7 @@ GEM
sqlite3 (>= 1.3.3)
state_machine (1.2.0)
stringex (2.1.2)
test_after_commit (0.2.3)
therubyracer (0.12.1)
libv8 (~> 3.16.14.0)
ref
@ -538,6 +539,7 @@ DEPENDENCIES
skype
soundmanager-rails
state_machine (~> 1.2)
test_after_commit
therubyracer (~> 0.12.1)
therubyrhino (~> 1.73.1)
time_diff

View File

@ -2,7 +2,7 @@ module Feed::Comment
extend ActiveSupport::Concern
included do
after_create :new_comment_notifications
after_commit :new_comment_notifications, on: :create
# dont remove outdated issues link
after_update -> { Comment.create_link_on_issues_from_item(self) }
end