Method: FlashRender.included

Defined in:
lib/flash_render.rb

.included(base) ⇒ Object



3
4
5
6
7
8
9
# File 'lib/flash_render.rb', line 3

def self.included(base)
  # Protect from trying to augment modules that appear
  # as the result of adding other gems.
  return unless base == ActionController::Base

  base.alias_method_chain :render, :flash
end