Permalink
Browse files

Merge pull request #7637 from NARKOZ/patch-3

use presence method instead of checking for blank
  • Loading branch information...
2 parents bb732be + 6927fad commit e1af54d35276b044f96f792b22e63d86e1199e86 @jeremy jeremy 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 e1af54d

Please sign in to comment.