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

11 commits

Author SHA1 Message Date
Aryk Grosz
542eeda841 Fix dynamoid specs 2017-07-07 08:08:33 +05:30
Aryk Grosz
0c4a25a8d4 Add Sequel transactions and locking
* Add aasm features of ActiveRecord to Sequel! :)
 * All specs pass for sequel, activerecord, and mongoid.
 * Refactor Sequel models to be namespaced under “Sequel”. We
   should do something similar for ActiveRecord in the specs
   to avoid collisions.

Addresses #474

(cherry picked from commit df97ce754f47864abbcb837227da5c4d0ff77289)
2017-07-07 08:08:33 +05:30
Thorsten Böttger
2a23d232e2 move redis and sequel loading and initialisation into its own file 2017-02-10 22:34:45 +11:00
Thorsten Böttger
a18d30ea6e unify and beautify gem-dependency output 2017-02-09 23:01:46 +11:00
Thorsten Böttger
2652abd4ec extract Sequel test models into model files 2015-07-11 22:36:07 +12:00
Thorsten Böttger
abcad714a9 test support for Sequel and multiple state machines per class 2015-07-11 22:20:26 +12:00
Lin Jen-Shin
109aa023f2 Do not update unloaded state for Sequel:
The problem is that the record might already have a state, which was
just not loaded due to explicit `select'. In this case, AASM should not
try to write the initial state into database.
2015-03-03 15:05:21 +08:00
Josef Šimánek
c231766f6f Use in-memory sqlite adapter for Sequel specs. 2015-01-19 01:00:36 +01:00
Thorsten Böttger
6fbdefd620 aasm_column is deprecated. Use aasm.attribute_name instead. 2014-11-24 23:50:04 +01:00
Thorsten Böttger
f7927e1610 running tests with Sequel, too 2014-05-05 21:54:07 +02:00
Lin Jen-Shin
c1461fbf6c Add [sequel](http://sequel.jeremyevans.net/) support.
I am trying to migrate some activerecord code to sequel, and this makes
aasm work for sequel out of the box. This is not yet feature complete
as for activerecord, missing some scope related features. However this
could be a start, and to be honest, since we're not using them, this is
far good enough for us.

I have tried my best to make this aligned with activerecord and mongoid,
and I've overridden `aasm_read_state` for sequel, because there's no
`new_record?` but only `new?` in sequel, and there's no `blank?`,
either. (which I believe is provided in activesupport, which sequel
does not depend on, and I don't want to force people to depend on that.)

Thanks for considering.
2014-04-22 22:40:22 +08:00