aboutsummaryrefslogtreecommitdiffstats
path: root/actionview
diff options
context:
space:
mode:
authorRafael Mendonça França <rafaelmfranca@gmail.com>2013-11-19 22:55:19 -0200
committerRafael Mendonça França <rafaelmfranca@gmail.com>2013-11-19 22:55:19 -0200
commit4f28e54424ba34c749ac236e6c98bfb9a53c9b6c (patch)
tree54105fe89f1a7a162fbc19d0c9ca8f53142cd4f7 /actionview
parent5487f627413e77cfa7f0d6cc2fe9c214ffb299ba (diff)
downloadrails-4f28e54424ba34c749ac236e6c98bfb9a53c9b6c.tar.gz
rails-4f28e54424ba34c749ac236e6c98bfb9a53c9b6c.tar.bz2
rails-4f28e54424ba34c749ac236e6c98bfb9a53c9b6c.zip
_implied_layout_name should be private
Diffstat (limited to 'actionview')
-rw-r--r--actionview/lib/action_view/layouts.rb20
1 files changed, 11 insertions, 9 deletions
diff --git a/actionview/lib/action_view/layouts.rb b/actionview/lib/action_view/layouts.rb
index 811078d5bc..ffa67649da 100644
--- a/actionview/lib/action_view/layouts.rb
+++ b/actionview/lib/action_view/layouts.rb
@@ -269,15 +269,6 @@ module ActionView
_write_layout_method
end
- # If no layout is supplied, look for a template named the return
- # value of this method.
- #
- # ==== Returns
- # * <tt>String</tt> - A template name
- def _implied_layout_name # :nodoc:
- controller_path
- end
-
# Creates a _layout method to be called by _default_layout .
#
# If a layout is not explicitly mentioned then look for a layout with the controller's name.
@@ -335,6 +326,17 @@ module ActionView
private :_layout
RUBY
end
+
+ private
+
+ # If no layout is supplied, look for a template named the return
+ # value of this method.
+ #
+ # ==== Returns
+ # * <tt>String</tt> - A template name
+ def _implied_layout_name # :nodoc:
+ controller_path
+ end
end
def _normalize_options(options) # :nodoc: