aboutsummaryrefslogtreecommitdiffstats
path: root/actionview
diff options
context:
space:
mode:
authorRyuta Kamizono <kamipo@gmail.com>2019-08-02 01:55:47 +0900
committerRyuta Kamizono <kamipo@gmail.com>2019-08-02 01:55:47 +0900
commitad957273f506a57af19f7b6a1436060f49291165 (patch)
treea9336f4be83e6f30ea75e106d0ccd7fe78f9f9ba /actionview
parentd40c88ae05ba2441c6bec3e87a8939a43ed7c84e (diff)
downloadrails-ad957273f506a57af19f7b6a1436060f49291165.tar.gz
rails-ad957273f506a57af19f7b6a1436060f49291165.tar.bz2
rails-ad957273f506a57af19f7b6a1436060f49291165.zip
Fix `_write_layout_method`
Diffstat (limited to 'actionview')
-rw-r--r--actionview/lib/action_view/layouts.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/actionview/lib/action_view/layouts.rb b/actionview/lib/action_view/layouts.rb
index 3fdd9fb272..b21dc1b9b3 100644
--- a/actionview/lib/action_view/layouts.rb
+++ b/actionview/lib/action_view/layouts.rb
@@ -306,12 +306,12 @@ module ActionView
RUBY
when Proc
define_method :_layout_from_proc, &_layout
+ private :_layout_from_proc
<<-RUBY
result = _layout_from_proc(#{_layout.arity == 0 ? '' : 'self'})
return #{default_behavior} if result.nil?
result
RUBY
- private :_layout_from_proc
when false
nil
when true