rails-render_hooks
This gem provides new callbacks to your controller (on RoR).
Installation
Add this line to your application's Gemfile:
gem 'rails-render_hooks'
And then execute:
$ bundle
Or install it yourself as:
$ gem install rails-render_hooks
Hooks
- before_render
- prepend_before_render
- skip_before_render
- after_render
- prepend_after_render
- skip_after_render
- around_render
- prepend_around_render
- skip_around_render
Ordering of hooks
- before_action
- around_action
- prepend_around_render
- prepend_before_render
- before_render
- around_render
- rendering
- around_render
- after_render
- prepend_after_render
- prepend_around_render
- around_action
- after_action
Supported versions
- Ruby: 2.3.x, 2.4.x, 2.5.x, 2.6.x
- Rails: 4.2.x, 5.0.x, 5.1.x, 5.2.x
Contributing
- Fork it ( https://github.com/pinzolo/rails-render_hooks/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
Changelog
- v1.0.0 (2014-06-10 JST): First release
- v2.0.0 (2019-04-20 JST): Compatible to recent ruby and rails versions