README.md in draper-2.0.0 vs README.md in draper-2.1.0
- old
+ new
@@ -1,9 +1,10 @@
# Draper: View Models for Rails
[![TravisCI Build Status](https://travis-ci.org/drapergem/draper.svg?branch=master)](http://travis-ci.org/drapergem/draper)
[![Code Climate](https://codeclimate.com/github/drapergem/draper.png)](https://codeclimate.com/github/drapergem/draper)
+[![Inline docs](http://inch-ci.org/github/drapergem/draper.png?branch=master)](http://inch-ci.org/github/drapergem/draper)
Draper adds an object-oriented layer of presentation logic to your Rails
application.
Without Draper, this functionality might have been tangled up in procedural
@@ -258,10 +259,10 @@
`limit_value`. To expose these on a collection decorator, you can delegate to
the `object`:
```ruby
class PaginatingDecorator < Draper::CollectionDecorator
- delegate :current_page, :total_pages, :limit_value
+ delegate :current_page, :total_pages, :limit_value, :entry_name, :total_count, :offset_value, :last_page?
end
```
The `delegate` method used here is the same as that added by [Active
Support](http://api.rubyonrails.org/classes/Module.html#method-i-delegate),