From 6927fadbe7c3768f94d91dcd9197dc6c68cff6d7 Mon Sep 17 00:00:00 2001 From: Nihad Abbasov Date: Fri, 14 Sep 2012 11:47:22 +0600 Subject: use presence method instead of checking for blank --- actionpack/lib/action_view/lookup_context.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'actionpack/lib/action_view/lookup_context.rb') 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 -- cgit v1.2.3