diff options
author | José Valim <jose.valim@gmail.com> | 2011-05-04 09:07:11 +0200 |
---|---|---|
committer | José Valim <jose.valim@gmail.com> | 2011-05-04 09:07:11 +0200 |
commit | c9fa3f03fee1b3a191fa64ec4e31b1f84b66e9d7 (patch) | |
tree | b7ff8bc6189fc75b6ce3bd91f1b02e786995114a /actionpack/lib/abstract_controller | |
parent | 4758d37044ac7a938c8b1dbd90470410a0566491 (diff) | |
download | rails-c9fa3f03fee1b3a191fa64ec4e31b1f84b66e9d7.tar.gz rails-c9fa3f03fee1b3a191fa64ec4e31b1f84b66e9d7.tar.bz2 rails-c9fa3f03fee1b3a191fa64ec4e31b1f84b66e9d7.zip |
Also allow prefixes as third argument to lookup context.
Diffstat (limited to 'actionpack/lib/abstract_controller')
-rw-r--r-- | actionpack/lib/abstract_controller/view_paths.rb | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/actionpack/lib/abstract_controller/view_paths.rb b/actionpack/lib/abstract_controller/view_paths.rb index 4fdca2cc5c..a777cf866d 100644 --- a/actionpack/lib/abstract_controller/view_paths.rb +++ b/actionpack/lib/abstract_controller/view_paths.rb @@ -16,9 +16,7 @@ module AbstractController # information. def lookup_context @lookup_context ||= - ActionView::LookupContext.new(self.class._view_paths, details_for_lookup).tap do |ctx| - ctx.prefixes = _prefixes - end + ActionView::LookupContext.new(self.class._view_paths, details_for_lookup, _prefixes) end def details_for_lookup |