diff options
author | Jeremy Kemper <jeremy@bitsweat.net> | 2012-09-13 22:52:06 -0700 |
---|---|---|
committer | Jeremy Kemper <jeremy@bitsweat.net> | 2012-09-13 22:52:06 -0700 |
commit | e1af54d35276b044f96f792b22e63d86e1199e86 (patch) | |
tree | 47f9f03de7408819fdcdb2a65932b3e2924465f7 /actionpack/lib | |
parent | bb732beba7c0c6f54b12eb774bc78790dd955b65 (diff) | |
parent | 6927fadbe7c3768f94d91dcd9197dc6c68cff6d7 (diff) | |
download | rails-e1af54d35276b044f96f792b22e63d86e1199e86.tar.gz rails-e1af54d35276b044f96f792b22e63d86e1199e86.tar.bz2 rails-e1af54d35276b044f96f792b22e63d86e1199e86.zip |
Merge pull request #7637 from NARKOZ/patch-3
use presence method instead of checking for blank
Diffstat (limited to 'actionpack/lib')
-rw-r--r-- | actionpack/lib/action_view/lookup_context.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/actionpack/lib/action_view/lookup_context.rb b/actionpack/lib/action_view/lookup_context.rb index af367ac28d..76f4dea7b8 100644 --- a/actionpack/lib/action_view/lookup_context.rb +++ b/actionpack/lib/action_view/lookup_context.rb @@ -149,7 +149,7 @@ module ActionView # 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 |