Skip to content

Commit

Permalink
Renamed #implicit_render to #default_render in new base to support th…
Browse files Browse the repository at this point in the history
…e default_render API
  • Loading branch information
Yehuda Katz + Carl Lerche committed May 21, 2009
1 parent 1a52b24 commit e773d0e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions actionpack/lib/action_controller/new_base/base.rb
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -38,18 +38,18 @@ class Base < Http
module ImplicitRender module ImplicitRender
def process_action(method_name) def process_action(method_name)
ret = super ret = super
render if response_body.nil? default_render if response_body.nil?
ret ret
end end


def _implicit_render def default_render
render render
end end


def method_for_action(action_name) def method_for_action(action_name)
super || begin super || begin
if view_paths.find_by_parts?(action_name.to_s, {:formats => formats, :locales => [I18n.locale]}, controller_path) if view_paths.find_by_parts?(action_name.to_s, {:formats => formats, :locales => [I18n.locale]}, controller_path)
"_implicit_render" "default_render"
end end
end end
end end
Expand Down

0 comments on commit e773d0e

Please sign in to comment.