Permalink
Browse files

Fixed typo, there is no alarm_state in this example

  • Loading branch information...
1 parent 5bbf99e commit e6ea8d167e7e37aae06b5d617f672ec1227151c6 Peter Lampesberger committed Apr 16, 2013
Showing with 2 additions and 2 deletions.
  1. +2 −2 README.md
View
4 README.md
@@ -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"
```
@@ -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"

0 comments on commit e6ea8d1

Please sign in to comment.