Permalink
Browse files

use presence method instead of checking for blank

  • Loading branch information...
1 parent bb732be commit 6927fadbe7c3768f94d91dcd9197dc6c68cff6d7 @NARKOZ NARKOZ committed Sep 14, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 actionpack/lib/action_view/lookup_context.rb
@@ -149,7 +149,7 @@ def detail_args_for(options)
# as well as incorrectly putting part of the path in the template
# name instead of the prefix.
def normalize_name(name, prefixes) #:nodoc:
- prefixes = nil if prefixes.blank?
+ prefixes = prefixes.presence
parts = name.to_s.split('/')
parts.shift if parts.first.empty?
name = parts.pop

0 comments on commit 6927fad

Please sign in to comment.