README.md in easy_presenter-1.1.0 vs README.md in easy_presenter-1.1.1

- old
+ new

@@ -1,6 +1,6 @@ -# EasyPresenter [![Build Status](https://travis-ci.org/s12chung/easy_presenter.png?branch=master)](https://travis-ci.org/s12chung/easy_presenter?branch=master) [![Code Climate](https://codeclimate.com/github/s12chung/easy_presenter.png)](https://codeclimate.com/github/s12chung/easy_presenter) +# EasyPresenter [![Gem Version](https://badge.fury.io/rb/easy_presenter.png)](http://badge.fury.io/rb/easy_presenter) [![Build Status](https://travis-ci.org/s12chung/easy_presenter.png?branch=master)](https://travis-ci.org/s12chung/easy_presenter?branch=master) [![Code Climate](https://codeclimate.com/github/s12chung/easy_presenter.png)](https://codeclimate.com/github/s12chung/easy_presenter) Access view methods from model instances in `Ruby on Rails`. ## Usage ### Easy @@ -52,9 +52,13 @@ ### Supported ORMs `ActiveRecord`, `Mongoid`, you may add support to an ORM at the bottom of `lib/easy_presenter.rb` and send in a pull request if you wish. ### Advanced +#### Instance Variables +You can get controller instance variables using `controller_get(:@instance_variable)`, which calls `Object#instance_variable_get(p1)` on the controller. + +#### Non-Supported ORM Models You may `include` the following modules to add EasyPresenter to other classes. * `EasyPresenter::Base` - add access to view methods * `EasyPresenter` - Give access to the `ClassNamePresenter` class that has access to view methods. Subclasses will also have the same effect. \ No newline at end of file