Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

syntax tweaks

  • Loading branch information...
commit 8a350760293d6f5fda55baedb7b8a8fd0b89f5b7 1 parent 1175739
Alex Ghiculescu ghiculescu authored
Showing with 2 additions and 4 deletions.
  1. +2 −4 lib/flash_render.rb
6 lib/flash_render.rb
View
@@ -3,11 +3,9 @@ module FlashRender
def self.included(base)
# Protect from trying to augment modules that appear
# as the result of adding other gems.
- return if base != ActionController::Base
+ return unless base == ActionController::Base
- base.class_eval do
- alias_method_chain :render, :flash
- end
+ base.alias_method_chain :render, :flash
end
def render_with_flash(*args)
Please sign in to comment.
Something went wrong with that request. Please try again.