aboutsummaryrefslogtreecommitdiffstats
path: root/actionview/lib/action_view/rendering.rb
diff options
context:
space:
mode:
authorŁukasz Strzałkowski <lukasz.strzalkowski@gmail.com>2013-09-03 14:57:33 +0200
committerŁukasz Strzałkowski <lukasz.strzalkowski@gmail.com>2013-09-03 14:57:37 +0200
commitaea02eb43001d85def0e69dce76fde0757040089 (patch)
treeeb337ca3b4f6efb4c52a5944fdea6c4c8138b4ee /actionview/lib/action_view/rendering.rb
parente3b695331d95022f9b41faf131f8e98cdf4f6985 (diff)
downloadrails-aea02eb43001d85def0e69dce76fde0757040089.tar.gz
rails-aea02eb43001d85def0e69dce76fde0757040089.tar.bz2
rails-aea02eb43001d85def0e69dce76fde0757040089.zip
Move skeleton methods from AV to AbsC
The methods: * #render_to_body * #render_to_string * #_normalize_render Haven't had anything specyfic to ActionView. This was common code which should belong to AbstractController
Diffstat (limited to 'actionview/lib/action_view/rendering.rb')
-rw-r--r--actionview/lib/action_view/rendering.rb22
1 files changed, 0 insertions, 22 deletions
diff --git a/actionview/lib/action_view/rendering.rb b/actionview/lib/action_view/rendering.rb
index 478ee361e0..c1945cc0c5 100644
--- a/actionview/lib/action_view/rendering.rb
+++ b/actionview/lib/action_view/rendering.rb
@@ -84,20 +84,6 @@ module ActionView
self.response_body = render_to_body(options)
end
- # Raw rendering of a template to a string.
- # :api: public
- def render_to_string(*args, &block)
- options = _normalize_render(*args, &block)
- render_to_body(options)
- end
-
- # Raw rendering of a template.
- # :api: public
- def render_to_body(options = {})
- _process_options(options)
- _render_template(options)
- end
-
# Find and renders a template based on the options given.
# :api: private
def _render_template(options) #:nodoc:
@@ -111,14 +97,6 @@ module ActionView
private
- # Normalize args and options.
- # :api: private
- def _normalize_render(*args, &block)
- options = _normalize_args(*args, &block)
- _normalize_options(options)
- options
- end
-
# Normalize args by converting render "foo" to render :action => "foo" and
# render "foo/bar" to render :file => "foo/bar".
# :api: private