1
0
Fork 0
mirror of https://github.com/aasm/aasm synced 2023-03-27 23:22:41 -04:00
Commit graph

33 commits

Author SHA1 Message Date
Anil Maurya
a8ceb82b04 Fix callback argument for :before_success & :success callback.
Simplify readme for callback arguments
2019-05-20 17:56:52 +05:30
Nick Edgar
a8a511841d Clear failed callbacks earlier 2019-03-04 08:41:32 +05:30
Zino
7a59852f53 Always return false when error callback is invoked 2018-02-04 08:31:30 +05:30
Tim Masliuchenko
5af931a309 Add before_success event on event layer 2016-12-19 11:29:19 +02:00
Thorsten Böttger
f34d152bc9 Merge branch 'transition_success_callbacks' of https://github.com/brega/aasm into brega-transition_success_callbacks
Conflicts:
	lib/aasm/core/transition.rb
	spec/models/callbacks/basic.rb
	spec/unit/transition_spec.rb
2016-03-19 17:42:35 +13:00
lingceng
e750b83696 Fix #297 duplicate after_all_transitions after reload 2016-01-20 19:32:31 +08:00
HoyaBoya
8002e5a1c8 working tests to prevent foo bleed across multiple scenarios 2015-11-05 10:46:06 -05:00
HoyaBoya
e64a84f71f attempt add global before transitions
coverage for not calling the transition callbacks

complete rething, support before after all events, error all events, and ensure
2015-11-04 22:01:13 -05:00
Thorsten Böttger
6396847041 provide after_all_transitions callback 2015-10-17 12:19:25 +13:00
Bregadeesh Samapathy
cd9922bac0 Update/fix specs 2015-06-18 19:32:37 +08:00
Thorsten Böttger
69997ffec8 little changes 2015-05-26 21:29:17 +12:00
Tobias Thiel
199ab29797 pass arguments into state callbacks 2015-03-04 11:55:34 +01:00
Thorsten Böttger
763957f6ec bugfix: take private methods into account when checking for callbacks #197 2014-12-20 20:12:15 +01:00
Thorsten Böttger
98dc66fa1c using RSpec 3 now 2014-12-14 15:05:16 +01:00
Thorsten Böttger
bb01034c1a an event's :error callback now retrieves all arguments passed to the event #196 2014-12-13 00:43:38 +01:00
Thorsten Böttger
4e8d65202b corrected callback order in README 2014-12-05 17:20:32 +01:00
Thorsten Böttger
bde1780eb6 little clean-up for test classes 2014-11-25 22:49:21 +01:00
Thorsten Böttger
9aa50f9c11 bugfix: fire guards only once per transition, part 2 #187 2014-11-25 22:23:23 +01:00
Thorsten Böttger
4fdc2a73b5 bugfix: really support block-guards (defined within a transition block) #186 2014-11-24 13:47:21 +01:00
Thorsten Böttger
aac1ece778 fire guards only once per transition #184 2014-11-19 23:34:39 +01:00
Thorsten Böttger
7d32335b60 Merge branch 'master' into aasm4
Conflicts:
	CHANGELOG.md
	lib/aasm/event.rb
	lib/aasm/transition.rb
2014-11-15 12:24:56 +01:00
Thorsten Böttger
44f2dfac40 clean up callbacks (closing #96) 2014-09-09 23:02:11 +02:00
Thorsten Böttger
7f9be4a97e allow providing any argument for :on_transition callback (fix for issue #126) 2014-05-11 23:19:06 +01:00
Thorsten Böttger
787650f4b3 Merge branch 'master' into aasm4 2014-01-29 21:22:33 +01:00
Peter M. Goldstein
caa9d9dcc7 Update specs to use 'expect' syntax using transpec. Loosed gemspec to allow rspec versions greater than 2.14.x 2014-01-11 08:10:59 -08:00
Thorsten Böttger
8bb01faebd Merge branch 'master' into aasm4
Conflicts:
	CHANGELOG.md
	lib/aasm/event.rb
2013-12-16 22:21:54 +01:00
Thorsten Böttger
3cb9ec2e16 deprecate usage of AASM.aasm_event (setter method) 2013-11-30 21:36:28 +01:00
Thorsten Böttger
cbb3d78a80 deprecate usage of AASM.aasm_state (setter method) 2013-11-30 21:30:07 +01:00
Thorsten Böttger
3ce4119cb6 Merge branch 'master' of https://github.com/ejlangev/aasm into ejlangev-master
Conflicts:
	lib/aasm/aasm.rb
2013-11-18 23:05:01 +01:00
Thorsten Böttger
ad48863e7a using the latest version of rspec 2013-11-15 11:19:26 +01:00
Ethan Langevin
83d7d540ab Event arguments are now passed more sensibly 2013-08-21 22:38:02 -04:00
Thorsten Böttger
233d99b906 continued to refactor instance methods for AASM objects 2013-02-22 19:15:03 +13:00
Thorsten Böttger
d8b8d5f5c3 improving tests 2012-12-02 20:51:48 +13:00
Renamed from spec/unit/callbacks_old_dsl_spec.rb (Browse further)