aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/abstract_controller
diff options
context:
space:
mode:
authorprintercu <printercu@gmail.com>2013-04-18 17:56:21 +0400
committerMax Melentiev <melentievm@gmail.ru>2013-04-18 20:03:31 +0400
commit14c196e5a3f78ea4672b691a09ba60524b31fb73 (patch)
tree900114e542088830f1eca2d6d3362823e82efc42 /actionpack/lib/abstract_controller
parentdba6a078ee22264bd2d305fd30a7b9ba8d9af983 (diff)
downloadrails-14c196e5a3f78ea4672b691a09ba60524b31fb73.tar.gz
rails-14c196e5a3f78ea4672b691a09ba60524b31fb73.tar.bz2
rails-14c196e5a3f78ea4672b691a09ba60524b31fb73.zip
Avoid leak into controller's action_methods
Diffstat (limited to 'actionpack/lib/abstract_controller')
-rw-r--r--actionpack/lib/abstract_controller/layouts.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/actionpack/lib/abstract_controller/layouts.rb b/actionpack/lib/abstract_controller/layouts.rb
index bac994496e..8e7bdf620e 100644
--- a/actionpack/lib/abstract_controller/layouts.rb
+++ b/actionpack/lib/abstract_controller/layouts.rb
@@ -309,6 +309,7 @@ module AbstractController
RUBY
when Proc
define_method :_layout_from_proc, &_layout
+ protected :_layout_from_proc
<<-RUBY
result = _layout_from_proc(#{_layout.arity == 0 ? '' : 'self'})
return #{default_behavior} if result.nil?