mirror of
https://github.com/aasm/aasm
synced 2023-03-27 23:22:41 -04:00
![Guillaume Hain](/assets/img/avatar_default.png)
* Add persistence for NoBrainer * Add tests for NoBrainer * Show the ORM version when running the tests * Add a Dockerfile and a docker-compose.yml file allowing to run from anywhere very easily the test suite with `docker-compose run --rm aasm\' * Moves the Mongoid database name definition in the gem loader (avoiding code repetition) * Update the CHANGELOG.md and the README.md files * Add Rails generator for NoBrainer
21 lines
382 B
Ruby
21 lines
382 B
Ruby
class NoScopeNoBrainer
|
|
include NoBrainer::Document
|
|
include AASM
|
|
|
|
field :status, type: String
|
|
|
|
aasm create_scopes: false, column: :status do
|
|
state :ignored_scope
|
|
end
|
|
end
|
|
|
|
class NoScopeNoBrainerMultiple
|
|
include NoBrainer::Document
|
|
include AASM
|
|
|
|
field :status, type: String
|
|
|
|
aasm :left, create_scopes: false, column: :status do
|
|
state :ignored_scope
|
|
end
|
|
end
|