diff options
author | artemave <artemave@gmail.com> | 2010-12-12 20:40:40 +0000 |
---|---|---|
committer | wycats <wycats@gmail.com> | 2010-12-26 22:32:15 -0800 |
commit | 6c5a3bb3125735760e92f49c3824d757ef87c61e (patch) | |
tree | 5abb3bd0173988dd66367f269318606500736dc3 /actionpack/lib/action_view/lookup_context.rb | |
parent | ce21ea783255a30e330c7218a3043801dfe9ad52 (diff) | |
download | rails-6c5a3bb3125735760e92f49c3824d757ef87c61e.tar.gz rails-6c5a3bb3125735760e92f49c3824d757ef87c61e.tar.bz2 rails-6c5a3bb3125735760e92f49c3824d757ef87c61e.zip |
all tests pass
Diffstat (limited to 'actionpack/lib/action_view/lookup_context.rb')
-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 14cccd88f0..0d7f15e564 100644 --- a/actionpack/lib/action_view/lookup_context.rb +++ b/actionpack/lib/action_view/lookup_context.rb @@ -119,7 +119,7 @@ module ActionView name = name.to_s.gsub(handlers_regexp, '') parts = name.split('/') name = parts.pop - prx = if not prefixes or prefixes.empty? + prx = if prefixes.blank? [parts.compact.join('/')] else prefixes.map {|prefix| [prefix, *parts].compact.join('/') } |