README.md in noticent-0.0.3 vs README.md in noticent-0.0.4
- old
+ new
@@ -93,11 +93,11 @@
```ruby
Noticent.configure do
channel :email
scope :account do
- alert(:new_signup){ notify :owner}
+ alert(:new_signup) { notify :owner}
alert(:new_team_member) { notify :users }
end
end
```
@@ -113,11 +113,11 @@
# send email here
end
end
```
-Now that we have our channel, we can define a Payload. We can do this in `app/modesl/noticent/account_payload.rb`:
+Now that we have our channel, we can define a Payload. We can do this in `app/models/noticent/account_payload.rb`:
```ruby
class AccountPayload
attr_reader :account
attr_reader :current_user
@@ -163,10 +163,9 @@
In the channel, you can use this:
```ruby
class EmailChannel < ::Noticent::Channel
-
def new_member
data, content = render
send_email(subject: data[:subject], content: content) # this is an example code
end
end