README.md in signal-0.3.0 vs README.md in signal-1.0.0
- old
+ new
@@ -121,11 +121,11 @@
You can use Signal with ActiveRecord, which will give you some default events like `:create`, `:update`, `:remove` and `:validation`.
```ruby
class Thing < ActiveRecord::Base
- include Signal::ActiveRecord
+ include Signal.active_record
validates_presence_of :name
end
thing = Thing.new(:name => "Stuff")
@@ -195,10 +195,10 @@
end
```
### Signal::Call
-You can include `Signal::Call` instead, so you can have a common interface for your observable object. This will add the `.call()` method to the target class, which will delegate attributes to the observable's `initialize` method and call its `call` method.
+You can include `Signal.call` instead, so you can have a common interface for your observable object. This will add the `.call()` method to the target class, which will delegate attributes to the observable's `initialize` method and call its `call` method.
```ruby
class Contact
include Signal.call