Skip to content
This repository
Browse code

use presence method instead of checking for blank

  • Loading branch information...
commit 6927fadbe7c3768f94d91dcd9197dc6c68cff6d7 1 parent bb732be
Nihad Abbasov authored September 14, 2012
2  actionpack/lib/action_view/lookup_context.rb
@@ -149,7 +149,7 @@ def detail_args_for(options)
149 149
       # as well as incorrectly putting part of the path in the template
150 150
       # name instead of the prefix.
151 151
       def normalize_name(name, prefixes) #:nodoc:
152  
-        prefixes = nil if prefixes.blank?
  152
+        prefixes = prefixes.presence
153 153
         parts    = name.to_s.split('/')
154 154
         parts.shift if parts.first.empty?
155 155
         name     = parts.pop

0 notes on commit 6927fad

Please sign in to comment.
Something went wrong with that request. Please try again.