Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Remove early return

  • Loading branch information...
commit d72e0c398da0f328c4e89424ea9e936cab744312 1 parent 3368cb7
@carlosantoniodasilva carlosantoniodasilva authored
Showing with 2 additions and 3 deletions.
  1. +2 −3 lib/responders/flash_responder.rb
View
5 lib/responders/flash_responder.rb
@@ -135,9 +135,8 @@ def set_flash(key, value)
end
def set_flash_now?
- return true if @flash_now == true || format == :js
-
- default_action && (has_errors? ? @flash_now == :on_failure : @flash_now == :on_success)
+ @flash_now == true || format == :js ||
+ (default_action && (has_errors? ? @flash_now == :on_failure : @flash_now == :on_success))
end
def set_flash_message? #:nodoc:
Please sign in to comment.
Something went wrong with that request. Please try again.