Skip to content

Commit

Permalink
Merge pull request pluginaweek#247 from lichtamberg/master
Browse files Browse the repository at this point in the history
Fix typo in README example
  • Loading branch information
obrie committed May 7, 2013
2 parents 5bbf99e + e6ea8d1 commit 8a3ba81
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -662,7 +662,7 @@ To trigger the `ignite` event, you would typically call the `Vehicle#ignite`
method like so:

```ruby
vehicle = Vehicle.create # => #<Vehicle id=1 state="parked" alarm_state="active">
vehicle = Vehicle.create # => #<Vehicle id=1 state="parked">
vehicle.ignite # => true
vehicle.state # => "idling"
```
Expand All @@ -672,7 +672,7 @@ also be achieved *implicitly* by setting the state event attribute and invoking
the action associated with the state machine. For example:

```ruby
vehicle = Vehicle.create # => #<Vehicle id=1 state="parked" alarm_state="active">
vehicle = Vehicle.create # => #<Vehicle id=1 state="parked">
vehicle.state_event = "ignite" # => "ignite"
vehicle.save # => true
vehicle.state # => "idling"
Expand Down

0 comments on commit 8a3ba81

Please sign in to comment.