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

Merge pull request #322 from yui-knk/add_ruby_to_code_block

[ci skip] Add "ruby" to code blocks on README.md
This commit is contained in:
Thorsten Böttger 2016-03-18 21:09:24 +13:00
commit 683330b438

View file

@ -423,7 +423,7 @@ AASM allows you to easily extend `AASM::Base` for your own application purposes.
Let's suppose we have common logic across many AASM models. We can embody this logic in a sub-class of `AASM::Base`.
```
```ruby
class CustomAASMBase < AASM::Base
# A custom transiton that we want available across many AASM models.
def count_transitions!
@ -460,7 +460,7 @@ end
When we declare our model that has an AASM state machine, we simply declare the AASM block with a `:with` key to our own class.
```
```ruby
class SimpleCustomExample
include AASM