README.md in base_presenter-0.0.10 vs README.md in base_presenter-0.1.0
- old
+ new
@@ -1,9 +1,11 @@
# BasePresenter
-[![Gem Version](https://badge.fury.io/rb/base_presenter.png)](http://badge.fury.io/rb/base_presenter)
+[![Gem Version](https://badge.fury.io/rb/base_presenter.png)](http://badge.fury.io/rb/base_presenter)
[![Build Status](https://travis-ci.org/raglub/base_presenter.png?branch=master)](https://travis-ci.org/raglub/base_presenter)
[![Code Climate](https://codeclimate.com/github/raglub/base_presenter.png)](https://codeclimate.com/github/raglub/base_presenter)
+[![Dependency Status](https://gemnasium.com/raglub/base_presenter.png)](https://gemnasium.com/raglub/base_presenter)
+[![Coverage Status](https://coveralls.io/repos/raglub/base_presenter/badge.png)](https://coveralls.io/r/raglub/base_presenter)
The gem adds "Presenter" functionality into Rails application.
# Installation
@@ -27,10 +29,20 @@
rails g base_presenter:install [model_name]
## Second step
+Add line
+
+```ruby
+ include BasePresenter::ApplicationHelper
+```
+
+to ApplicationHelper module in Rails application.
+
+## Third step
+
For model_name equal 'example' we should get file in director root_rails/app/presenters/example_presenter.rb which we can improve.
For example:
```ruby
class ExamplePresenter < ApplicationPresenter
@@ -79,5 +91,11 @@
Method returns span with 'None given' when value is blank
```erb
#handle_none(value)
```
+
+# License
+
+BasePresenter uses the MIT license. Please check the [LICENSE][] file for more details.
+
+[license]: https://github.com/raglub/base_presenter/blob/master/LICENSE