diff options
author | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2013-11-19 22:55:19 -0200 |
---|---|---|
committer | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2013-11-19 22:55:19 -0200 |
commit | 4f28e54424ba34c749ac236e6c98bfb9a53c9b6c (patch) | |
tree | 54105fe89f1a7a162fbc19d0c9ca8f53142cd4f7 /actionview/lib/action_view | |
parent | 5487f627413e77cfa7f0d6cc2fe9c214ffb299ba (diff) | |
download | rails-4f28e54424ba34c749ac236e6c98bfb9a53c9b6c.tar.gz rails-4f28e54424ba34c749ac236e6c98bfb9a53c9b6c.tar.bz2 rails-4f28e54424ba34c749ac236e6c98bfb9a53c9b6c.zip |
_implied_layout_name should be private
Diffstat (limited to 'actionview/lib/action_view')
-rw-r--r-- | actionview/lib/action_view/layouts.rb | 20 |
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: |