diff --git a/Readme.markdown b/Readme.markdown index a57d7b3..20685e1 100644 --- a/Readme.markdown +++ b/Readme.markdown @@ -30,6 +30,10 @@ Ryan Bates has put together an excellent RailsCast on Draper based on the 0.8.0 ### Version 0.9.X +* `.5`: Render the `decorate` helper, passing a source object and a block in a view template to auto-decorate and render the block (ISSUE: see https://github.com/jcasimir/draper/issues/32) +* `.5`: `ArticleDecorator.first` and `ArticleDecorator.last` will return decorated instances as you'd expect +* `.5`: Calling `ArticleDecorator.all` will now return a `DecoratedEnumerableProxy` of the objects from `Article.all` +* `.5`: More love for `DecoratedEnumerableProxy` including better use of `respond_to`, `include?`, and overriding `.all` to return a * `.4`: Improved the collection proxy's `respond_to` and `to_ary` to play nicely with Rails' `render` * `.3`: Helpers are available from the decorator class level, so you could write a `ArticleDecorator.new_article_link` that uses `h.link_to` * `.2`: Automatically generate a named accessor for the wrapped object, so now inside of `ArticleDecorator` you can use `article` instead of just `model` diff --git a/lib/draper/version.rb b/lib/draper/version.rb index 04476cd..d88e2e6 100644 --- a/lib/draper/version.rb +++ b/lib/draper/version.rb @@ -1,3 +1,3 @@ module Draper - VERSION = "0.9.4" + VERSION = "0.9.5" end