diff options
author | Nihad Abbasov <mail@narkoz.me> | 2012-09-14 11:47:22 +0600 |
---|---|---|
committer | Nihad Abbasov <mail@narkoz.me> | 2012-09-14 11:47:22 +0600 |
commit | 6927fadbe7c3768f94d91dcd9197dc6c68cff6d7 (patch) | |
tree | 47f9f03de7408819fdcdb2a65932b3e2924465f7 /actionpack | |
parent | bb732beba7c0c6f54b12eb774bc78790dd955b65 (diff) | |
download | rails-6927fadbe7c3768f94d91dcd9197dc6c68cff6d7.tar.gz rails-6927fadbe7c3768f94d91dcd9197dc6c68cff6d7.tar.bz2 rails-6927fadbe7c3768f94d91dcd9197dc6c68cff6d7.zip |
use presence method instead of checking for blank
Diffstat (limited to 'actionpack')
-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 |