Permalink
Browse files

syntax tweaks

  • Loading branch information...
1 parent 1175739 commit 8a350760293d6f5fda55baedb7b8a8fd0b89f5b7 @ghiculescu ghiculescu committed Dec 2, 2013
Showing with 2 additions and 4 deletions.
  1. +2 −4 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)

0 comments on commit 8a35076

Please sign in to comment.