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

README: fix typo of transition

This commit is contained in:
guchey 2022-11-07 09:34:25 +09:00 committed by Anil Kumar Maurya
parent d40818efc9
commit 2e952ff208
2 changed files with 2 additions and 2 deletions

View file

@ -656,7 +656,7 @@ Let's suppose we have common logic across many AASM models. We can embody this l
```ruby ```ruby
class CustomAASMBase < AASM::Base class CustomAASMBase < AASM::Base
# A custom transiton that we want available across many AASM models. # A custom transition that we want available across many AASM models.
def count_transitions! def count_transitions!
klass.class_eval do klass.class_eval do
aasm with_klass: CustomAASMBase do aasm with_klass: CustomAASMBase do

View file

@ -1,5 +1,5 @@
class CustomAASMBase < AASM::Base class CustomAASMBase < AASM::Base
# A custom transiton that we want available across many AASM models. # A custom transition that we want available across many AASM models.
def count_transitions! def count_transitions!
klass.class_eval do klass.class_eval do
aasm :with_klass => CustomAASMBase do aasm :with_klass => CustomAASMBase do