From ad957273f506a57af19f7b6a1436060f49291165 Mon Sep 17 00:00:00 2001 From: Ryuta Kamizono Date: Fri, 2 Aug 2019 01:55:47 +0900 Subject: Fix `_write_layout_method` --- actionview/lib/action_view/layouts.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'actionview/lib') 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 -- cgit v1.2.3