Jbuilder::ActiveDecorator
Prevent ActiveDecorator from
decorating Jbuilder objects. If not,
it generates unexpected keys like nil?
and/or class
.
Installation
Add this line to your application's Gemfile:
gem 'jbuilder-active_decorator', require: 'jbuilder/active_decorator'
And then execute:
$ bundle
Or install it yourself as:
$ gem install jbuilder-active_decorator
Contributing
- Fork it ( https://github.com/a2ikm/jbuilder-active_decorator/fork )
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create a new Pull Request