aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_controller/base.rb
diff options
context:
space:
mode:
authorCarl Lerche <carllerche@mac.com>2010-03-03 00:42:51 -0800
committerCarl Lerche <carllerche@mac.com>2010-03-03 00:43:05 -0800
commit9dae645c5f8a2aaa70b19e05daf9a7d270facb72 (patch)
tree6b5d7c8cf9cc201f33e2b3e25c328399999b81f6 /actionpack/lib/action_controller/base.rb
parent6feffe5f38ad82d50b112ed102f8370ed934c8c1 (diff)
downloadrails-9dae645c5f8a2aaa70b19e05daf9a7d270facb72.tar.gz
rails-9dae645c5f8a2aaa70b19e05daf9a7d270facb72.tar.bz2
rails-9dae645c5f8a2aaa70b19e05daf9a7d270facb72.zip
Actually move ImplicitRender into it's own file
Diffstat (limited to 'actionpack/lib/action_controller/base.rb')
-rw-r--r--actionpack/lib/action_controller/base.rb23
1 files changed, 0 insertions, 23 deletions
diff --git a/actionpack/lib/action_controller/base.rb b/actionpack/lib/action_controller/base.rb
index 13139358c7..aec14165b6 100644
--- a/actionpack/lib/action_controller/base.rb
+++ b/actionpack/lib/action_controller/base.rb
@@ -36,29 +36,6 @@ module ActionController
# Add instrumentations hooks at the bottom, to ensure they instrument
# all the methods properly.
include ActionController::Instrumentation
-
- # TODO: Extract into its own module
- # This should be moved together with other normalizing behavior
- module ImplicitRender
- def send_action(*)
- ret = super
- default_render unless response_body
- ret
- end
-
- def default_render
- render
- end
-
- def method_for_action(action_name)
- super || begin
- if view_paths.exists?(action_name.to_s, details_for_render, controller_path)
- "default_render"
- end
- end
- end
- end
-
include ImplicitRender
include ActionController::Rescue