README.md in transitions-0.2.0 vs README.md in transitions-0.2.1
- old
+ new
@@ -213,10 +213,10 @@
In case you need to trigger a method call after a successful transition you
can use `success`. This will be called after the `save!` is complete (if you
use the `state_name!` method) and should be used for any methods that require
that the object be persisted.
```ruby
-event :discontinue, :success => :notfiy_admin do
+event :discontinue, :success => :notify_admin do
transitions :to => :discontinued, :from => [:available, :out_of_stock]
end
```
In addition to just specify the method name on the record as a symbol you can