A simple decorator for Rails 3 and Rails 4. Always, the decorator is mixed automatically in model.
Add this line to your application's Gemfile:
gem 'eager_decorator'
You can use the denerator like the following.
$ rails g decorator user
- Ruby 1.9.3, 2.0.0, 2.1.0
- Rails 3.2, 4.0, 4.1, 4.2
Copyright (c) 2015 Koya Fukuda. See MIT-LICENSE for further details.