Jon Leighton
|
60c88e64e2
|
Fix test
Accidentally checked in commented test code. Fail. >_<
|
2012-09-15 00:41:56 +01:00 |
|
Jon Leighton
|
02f25a226f
|
Start to tease out transaction handling into a state machine
|
2012-09-15 00:00:50 +01:00 |
|
Aaron Patterson
|
8e5f07dabc
|
Merge pull request #5535 from markmcspadden/issue_5527_rollbacks
Allow manual rollbacks in after_save to reset object correctly
|
2012-05-16 16:06:49 -07:00 |
|
Hemant Kumar
|
041b6c6ccb
|
make both cached and record_updated accessors in one line
|
2012-05-09 18:43:18 +05:30 |
|
Hemant Kumar
|
1024c688a9
|
after_commit :on => :update should be called when save is
called from after_commit callback
|
2012-05-09 18:39:59 +05:30 |
|
Hemant Kumar
|
44d1804b0a
|
Fix transaction state not changing when after record gets commited
|
2012-05-09 17:32:15 +05:30 |
|
Mark McSpadden
|
c8792c7b2e
|
Allow manual rollbacks in after_save to reset object correctly
|
2012-03-21 04:35:28 -04:00 |
|
Jon Leighton
|
0b72a04d0c
|
Deprecate set_table_name in favour of self.table_name= or defining your own method.
|
2011-11-29 20:13:36 +00:00 |
|
Aaron Patterson
|
61774e0d49
|
please use ruby -I lib:test path/to/test.rb, or export RUBY_OPT
|
2011-06-06 15:47:13 -07:00 |
|
Jon Leighton
|
253bb6b926
|
Refactor Active Record test connection setup. Please see the RUNNING_UNIT_TESTS file for details, but essentially you can now configure things in test/config.yml. You can also run tests directly via the command line, e.g. ruby path/to/test.rb (no rake needed, uses default db connection from test/config.yml). This will help us fix the CI by enabling us to isolate the different Rails versions to different databases.
|
2011-06-04 23:47:03 +01:00 |
|
Aaron Patterson
|
949c7e2d0e
|
fisting after_rollback and after commit callbacks
|
2010-08-20 00:06:49 -07:00 |
|
Santiago Pastorino
|
8010e4f476
|
assert_equal here
|
2010-08-16 19:09:23 -03:00 |
|
Tobias Lütke
|
cb9295c8a1
|
Added test case to verify that transaction callbacks are correctly propagated to class observers
|
2010-08-09 21:36:06 -04:00 |
|
Subba Rao Pasupuleti
|
b0c7dee4f2
|
removing unused models from tests
[#5153 state:resolved]
Signed-off-by: José Valim <jose.valim@gmail.com>
|
2010-07-21 22:08:07 +02:00 |
|
Brian Durand
|
237165feb3
|
Fix bug with rolling back frozen attributes.
[#2991]
Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
|
2010-06-18 15:11:17 -07:00 |
|
Jeremy Kemper
|
b070739240
|
Revert "Temporarily revert "Update after_commit and after_rollback docs and tests to use new style API with an :on options instead of on_* suffix." and "Add after_commit and after_rollback callbacks to ActiveRecord that are called after transactions either commit or rollback on all records saved or destroyed in the transaction.""
This reverts commit 1b2941cba1 .
[#2991]
|
2010-06-08 17:05:29 -04:00 |
|
Jeremy Kemper
|
1b2941cba1
|
Temporarily revert "Update after_commit and after_rollback docs and tests to use new style API with an :on options instead of on_* suffix." and "Add after_commit and after_rollback callbacks to ActiveRecord that are called after transactions either commit or rollback on all records saved or destroyed in the transaction."
This reverts commits d2a49e4b1f and da840d13da .
[#2991]
Conflicts:
activerecord/CHANGELOG
activerecord/lib/active_record/transactions.rb
activerecord/test/cases/transaction_callbacks_test.rb
|
2010-06-08 14:56:08 -04:00 |
|
Santiago Pastorino
|
715f7c0b7c
|
Fixes a test on transaction_callbacks_test.rb
Signed-off-by: José Valim <jose.valim@gmail.com>
|
2010-05-19 12:59:47 +02:00 |
|
Santiago Pastorino
|
03c3d1eb84
|
Fixes transaction callbacks tests
[#4640 state:committed]
Signed-off-by: wycats <wycats@gmail.com>
|
2010-05-18 19:32:37 +04:00 |
|
Paco Guzman
|
c2fb8afaa0
|
Use assert_equal correctly in transaction callback tests (exposing some of them as broken)
[#4612]
Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
|
2010-05-17 07:16:53 -07:00 |
|
Brian Durand
|
d2a49e4b1f
|
Update after_commit and after_rollback docs and tests to use new style API with an :on options instead of on_* suffix.
[#2991]
Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
|
2010-04-29 18:26:19 -07:00 |
|
Brian Durand
|
da840d13da
|
Add after_commit and after_rollback callbacks to ActiveRecord that are called after transactions either commit or rollback on all records saved or destroyed in the transaction.
[#2991 state:committed]
Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
|
2010-04-29 12:24:15 -07:00 |
|