1.9 hash syntax

[ci skip]
This commit is contained in:
Andrew Haines 2013-01-22 00:18:24 +00:00
parent cc04adc717
commit d1acc8dcdb
1 changed files with 1 additions and 1 deletions

View File

@ -320,7 +320,7 @@ We omit the `:to` argument here as it defaults to the `source` object. You could
```ruby
class ArticleDecorator < Draper::Decorator
delegate :title, :body
delegate :name, :title, :to => :author, :prefix => true
delegate :name, :title, to: :author, prefix: true
end
```