#345: rollback changes, added test_after_commit gem
This commit is contained in:
parent
ee412382f0
commit
4d7809ec14
1
Gemfile
1
Gemfile
|
@ -123,4 +123,5 @@ group :test do
|
|||
gem 'shoulda-matchers'
|
||||
gem 'mock_redis', '~> 0.11'
|
||||
gem 'rake'
|
||||
gem 'test_after_commit'
|
||||
end
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue