A platform for community discussion. Free, open, simple.
Fix indentation
David Taylord7b5a374c2e9
diff --git a/app/helpers/transaction_helper.rb b/app/helpers/transaction_helper.rbindex f76eb97723b..efb98d6a53e 100644--- a/app/helpers/transaction_helper.rb+++ b/app/helpers/transaction_helper.rb@@ -32,7 +32,7 @@ module TransactionHelperdef self.after_commit(&blk)ActiveRecord::Base.connection.add_transaction_record(- AfterCommitWrapper.new(&blk)+ AfterCommitWrapper.new(&blk))endenddiff --git a/spec/helpers/transaction_helper_spec.rb b/spec/helpers/transaction_helper_spec.rbindex d1c4a3e4947..01908b15aaa 100644--- a/spec/helpers/transaction_helper_spec.rb+++ b/spec/helpers/transaction_helper_spec.rb@@ -5,28 +5,28 @@ describe TransactionHelper doit "runs callbacks after outermost transaction is committed" dooutputString = "1"- # Main transaction- ActiveRecord::Base.transaction do- outputString += "2"+ # Main transaction+ ActiveRecord::Base.transaction do+ outputString += "2"- # Nested transaction- ActiveRecord::Base.transaction do- outputString += "3"+ # Nested transaction+ ActiveRecord::Base.transaction do+ outputString += "3"- TransactionHelper.after_commit do- outputString += "6"- end- outputString += "4"- end+ TransactionHelper.after_commit do+ outputString += "6"+ end+ outputString += "4"+ end- TransactionHelper.after_commit do- outputString += "7"- end+ TransactionHelper.after_commit do+ outputString += "7"+ end- outputString += "5"- end+ outputString += "5"+ end- expect(outputString).to eq("1234567")+ expect(outputString).to eq("1234567")endend