aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_view/base.rb
diff options
context:
space:
mode:
authorJosé Valim <jose.valim@gmail.com>2010-10-14 09:27:18 +0200
committerJosé Valim <jose.valim@gmail.com>2010-10-14 09:27:18 +0200
commit37d78028b235f04b2d3ca5cd88b7e1e0ad218684 (patch)
treed89694e106cbc3353ac1b0eeaf257ea91b3a7b01 /actionpack/lib/action_view/base.rb
parentc7aea81a39e130bfddd26537dea5f3626e2a009e (diff)
downloadrails-37d78028b235f04b2d3ca5cd88b7e1e0ad218684.tar.gz
rails-37d78028b235f04b2d3ca5cd88b7e1e0ad218684.tar.bz2
rails-37d78028b235f04b2d3ca5cd88b7e1e0ad218684.zip
render :once should consider the current controller prefix.
Diffstat (limited to 'actionpack/lib/action_view/base.rb')
-rw-r--r--actionpack/lib/action_view/base.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/actionpack/lib/action_view/base.rb b/actionpack/lib/action_view/base.rb
index a7a6bbd3a4..1beae37af3 100644
--- a/actionpack/lib/action_view/base.rb
+++ b/actionpack/lib/action_view/base.rb
@@ -224,6 +224,10 @@ module ActionView #:nodoc:
@controller_path ||= controller && controller.controller_path
end
+ def controller_prefix
+ @controller_prefix ||= controller && controller._prefix
+ end
+
ActiveSupport.run_load_hooks(:action_view, self)
end
end