Merge pull request #5232 from tgxworld/remove_unused_file

Remove unused file.
This commit is contained in:
Guo Xiang Tan 2017-10-11 18:31:00 +08:00 committed by GitHub
commit bf22a94385

View File

@ -1,23 +0,0 @@
# Allow after commits to work in test mode
if Rails.env.test?
class ActiveRecord::Base
class << self
def after_commit(*args, &block)
opts = args.extract_options! || {}
case opts[:on]
when :create
after_create(*args, &block)
when :update
after_update(*args, &block)
when :destroy
after_destroy(*args, &block)
else
after_save(*args, &block)
end
end
end
end
end