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

10 commits

Author SHA1 Message Date
Anil
0faff1fcf0 Raise 'column_name undefined error' when column not present
When using enum for state column and enum config not set explicitly,
if column is not present in database then "NoMethodError: undefined
method 'type' for nil:NilClass" was raised for transitions which is
hard to debug.
Fix #152
2015-10-04 03:20:33 +05:30
Thorsten Böttger
a696afb5e0 another README example 2015-09-21 22:18:14 +12:00
Thorsten Böttger
454f38e184 add basic examples with two state machines 2015-07-20 20:55:47 +12:00
Thorsten Böttger
e72f00f5b1 add more complex example for ActiveRecord, when two state machines are defined in a class 2015-07-10 22:47:04 +12:00
Thorsten Böttger
5c94b624d1 first set of ActiveRecord tests 2015-07-01 23:41:44 +12:00
Thorsten Böttger
cdc3d5e829 bugfix: false is treated as uninitialised state (same as nil) #195 2014-12-13 01:21:40 +01:00
Thorsten Böttger
13c8e96fe7 bugfix: initialize the aasm state column after initialization of the _ActiveRecord_ instance #191 2014-12-05 00:07:38 +01:00
Thorsten Böttger
ec82d2c4c3 refactor tests (do not use so many stubs and mocks) 2014-12-04 23:15:00 +01:00
Thorsten Böttger
163859caef may configure to not allow direct assignment for persisted AASM models #53 2014-05-18 14:21:35 +02:00
Thorsten Böttger
01aec09922 don't load migrations more than once when running all specs (and surpressing migration output to improve readability) 2014-01-11 12:12:29 +01:00