Permalink
Browse files

fix require markup in readme

  • Loading branch information...
timoschilling committed Nov 4, 2015
1 parent 6198317 commit 0b1262983e68905af09a1db2bad673f101d5a1d5
Showing with 4 additions and 4 deletions.
  1. +4 −4 README.md
@@ -54,7 +54,7 @@ Or install it yourself as:
A simple mailer looks like this:
```ruby
require lotus/mailer
require 'lotus/mailer'
class InvoiceMailer
include Lotus::Mailer
@@ -64,7 +64,7 @@ end
A mailer with `.to` and `.from` addresses and mailer delivery:
```ruby
require lotus/mailer
require 'lotus/mailer'
Lotus::Mailer.configuration do
delivery_method :smtp,
@@ -93,7 +93,7 @@ WelcomeMailer.deliver
The set of objects passed in the `deliver` call are called `locals` and are avaliable inside the mailer and the template.
```ruby
require lotus/mailer
require 'lotus/mailer'
User = Struct.new(:name, :username)
user = User.new('Luca', 'jodosha')
@@ -128,7 +128,7 @@ Hello <%= user.name %>!
All public methods defined in the mailer are accessible from the template:
```ruby
require lotus/mailer
require 'lotus/mailer'
class WelcomeMailer
include Lotus::Mailer

0 comments on commit 0b12629

Please sign in to comment.