mirror of
https://github.com/aasm/aasm
synced 2023-03-27 23:22:41 -04:00
📝 Fix ActiveRecord spelling
Found some inconsistent spellings for ActiveRecord while perusing the README
This commit is contained in:
parent
0aceb5660b
commit
077f8c7826
1 changed files with 3 additions and 3 deletions
|
@ -1084,7 +1084,7 @@ end
|
||||||
|
|
||||||
which then leads to `transaction(requires_new: false)`, the Rails default.
|
which then leads to `transaction(requires_new: false)`, the Rails default.
|
||||||
|
|
||||||
Additionally, if you do not want any of your active record actions to be
|
Additionally, if you do not want any of your ActiveRecord actions to be
|
||||||
wrapped in a transaction, you can specify the `use_transactions` flag. This can
|
wrapped in a transaction, you can specify the `use_transactions` flag. This can
|
||||||
be useful if you want want to persist things to the database that happen as a
|
be useful if you want want to persist things to the database that happen as a
|
||||||
result of a transaction or callback, even when some error occurs. The
|
result of a transaction or callback, even when some error occurs. The
|
||||||
|
@ -1104,7 +1104,7 @@ end
|
||||||
|
|
||||||
### Pessimistic Locking
|
### Pessimistic Locking
|
||||||
|
|
||||||
AASM supports [Active Record pessimistic locking via `with_lock`](http://api.rubyonrails.org/classes/ActiveRecord/Locking/Pessimistic.html#method-i-with_lock) for database persistence layers.
|
AASM supports [ActiveRecord pessimistic locking via `with_lock`](http://api.rubyonrails.org/classes/ActiveRecord/Locking/Pessimistic.html#method-i-with_lock) for database persistence layers.
|
||||||
|
|
||||||
| Option | Purpose |
|
| Option | Purpose |
|
||||||
| ------ | ------- |
|
| ------ | ------- |
|
||||||
|
@ -1461,7 +1461,7 @@ After installing AASM you can run generator:
|
||||||
```
|
```
|
||||||
Replace NAME with the Model name, COLUMN_NAME is optional(default is 'aasm_state').
|
Replace NAME with the Model name, COLUMN_NAME is optional(default is 'aasm_state').
|
||||||
This will create a model (if one does not exist) and configure it with aasm block.
|
This will create a model (if one does not exist) and configure it with aasm block.
|
||||||
For Active record orm a migration file is added to add aasm state column to table.
|
For ActiveRecord orm a migration file is added to add aasm state column to table.
|
||||||
|
|
||||||
### Docker
|
### Docker
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue