Skip to content
Browse files

Renamed #implicit_render to #default_render in new base to support th…

…e default_render API
  • Loading branch information...
1 parent 1a52b24 commit e773d0e68ac64bd26d86860a9a8e0048e2b6bb48 Yehuda Katz + Carl Lerche committed May 21, 2009
Showing with 3 additions and 3 deletions.
  1. +3 −3 actionpack/lib/action_controller/new_base/base.rb
View
6 actionpack/lib/action_controller/new_base/base.rb
@@ -38,18 +38,18 @@ class Base < Http
module ImplicitRender
def process_action(method_name)
ret = super
- render if response_body.nil?
+ default_render if response_body.nil?
ret
end
- def _implicit_render
+ def default_render
render
end
def method_for_action(action_name)
super || begin
if view_paths.find_by_parts?(action_name.to_s, {:formats => formats, :locales => [I18n.locale]}, controller_path)
- "_implicit_render"
+ "default_render"
end
end
end

0 comments on commit e773d0e

Please sign in to comment.
Something went wrong with that request. Please try again.