Skip to content

toshiyukihina/before_render

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

BeforeRender

Register your hook method which is invoked before invoking render method.

Installation

Add this line to your application's Gemfile:

gem 'before_render'

And then execute:

$ bundle

Or install it yourself as:

$ gem install before_render

Usage

class SomeController < ApplicationController

  before_render :my_hooker_before_render, only: [...]

  def my_hooker_before_render
    # Invoked before render method.
  end
end

Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/toshiyukihina/before_render.

License

The gem is available as open source under the terms of the MIT License.

About

Hooker before invoking render method.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published