No commit activity in last 3 years
No release in over 3 years
Add callbacks for render method
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

Runtime

>= 4.2.0
 Project Readme

rails-render_hooks

Build Status Coverage Status

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

  1. before_action
  2. around_action
  3. prepend_around_render
  4. prepend_before_render
  5. before_render
  6. around_render
  7. rendering
  8. around_render
  9. after_render
  10. prepend_after_render
  11. prepend_around_render
  12. around_action
  13. 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

  1. Fork it ( https://github.com/pinzolo/rails-render_hooks/fork )
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. 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