Skip to content

Commit

Permalink
document logger configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
alto committed Jun 19, 2016
1 parent a26b2f3 commit 9ba044a
Showing 1 changed file with 19 additions and 1 deletion.
20 changes: 19 additions & 1 deletion README.md
Expand Up @@ -869,6 +869,7 @@ end
AASM supports query methods for states and events

Given the following `Job` class:

```ruby
class Job
include AASM
Expand All @@ -889,7 +890,7 @@ class Job
transitions :from => [:running, :cleaning], :to => :sleeping
end
end

def cleaning_needed?
false
end
Expand Down Expand Up @@ -937,6 +938,23 @@ Job.aasm.states_for_select
```


### Warning output

Warnings are by default printed to `STDERR`. If you want to log those warnings to another output,
use

```ruby
class Job
include AASM

aasm :logger => Rails.logger do
...
end
end
```

Be aware though, that this is not yet released. It will be part of _AASM_ version `4.11.0`.

### RubyMotion support

Now supports [CodeDataQuery](https://github.com/infinitered/cdq.git) !
Expand Down

0 comments on commit 9ba044a

Please sign in to comment.