aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib
diff options
context:
space:
mode:
authorCarlhuda <carlhuda@engineyard.com>2010-03-18 13:47:40 -0700
committerCarlhuda <carlhuda@engineyard.com>2010-03-18 14:55:29 -0700
commitd8c7efece60f23d09031c11928be5048ac6340de (patch)
treec9a0b14ee05a7bcc6781ff5f5e248b2a62798afc /actionpack/lib
parent3deb60e6b492b5b944e7e6ead3531ad4e412f56d (diff)
downloadrails-d8c7efece60f23d09031c11928be5048ac6340de.tar.gz
rails-d8c7efece60f23d09031c11928be5048ac6340de.tar.bz2
rails-d8c7efece60f23d09031c11928be5048ac6340de.zip
Make action_has_layout? non-private
Diffstat (limited to 'actionpack/lib')
-rw-r--r--actionpack/lib/abstract_controller/layouts.rb8
1 files changed, 4 insertions, 4 deletions
diff --git a/actionpack/lib/abstract_controller/layouts.rb b/actionpack/lib/abstract_controller/layouts.rb
index 528a430b04..24a3923447 100644
--- a/actionpack/lib/abstract_controller/layouts.rb
+++ b/actionpack/lib/abstract_controller/layouts.rb
@@ -184,7 +184,7 @@ module AbstractController
#
# ==== Returns
# Boolean:: True if the action has a layout, false otherwise.
- def _action_has_layout?
+ def action_has_layout?
conditions = _layout_conditions
if only = conditions[:only]
@@ -336,13 +336,13 @@ module AbstractController
# Template:: The template object for the default layout (or nil)
def _default_layout(require_layout = false)
begin
- layout_name = _layout if _action_has_layout?
+ layout_name = _layout if action_has_layout?
rescue NameError => e
raise NoMethodError,
"You specified #{@_layout.inspect} as the layout, but no such method was found"
end
- if require_layout && _action_has_layout? && !layout_name
+ if require_layout && action_has_layout? && !layout_name
raise ArgumentError,
"There was no default layout for #{self.class} in #{view_paths.inspect}"
end
@@ -354,7 +354,7 @@ module AbstractController
(options.keys & [:text, :inline, :partial]).empty? || options.key?(:layout)
end
- def _action_has_layout?
+ def action_has_layout?
true
end
end