aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_controller/base.rb
diff options
context:
space:
mode:
authorJeremy Kemper <jeremy@bitsweat.net>2007-03-13 05:06:41 +0000
committerJeremy Kemper <jeremy@bitsweat.net>2007-03-13 05:06:41 +0000
commitd20b943551898ea09f77e95d3dacbcf4c0e325b8 (patch)
tree1f7baca8c594d75c14b58238713ff888e0703858 /actionpack/lib/action_controller/base.rb
parentda87839c895121b41ab9543c156439638df5b587 (diff)
downloadrails-d20b943551898ea09f77e95d3dacbcf4c0e325b8.tar.gz
rails-d20b943551898ea09f77e95d3dacbcf4c0e325b8.tar.bz2
rails-d20b943551898ea09f77e95d3dacbcf4c0e325b8.zip
Deprecation: privatize deprecated render_partial and render_partial_collection methods.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6404 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'actionpack/lib/action_controller/base.rb')
-rwxr-xr-xactionpack/lib/action_controller/base.rb7
1 files changed, 2 insertions, 5 deletions
diff --git a/actionpack/lib/action_controller/base.rb b/actionpack/lib/action_controller/base.rb
index 0ee7bf9529..9ce3c31de8 100755
--- a/actionpack/lib/action_controller/base.rb
+++ b/actionpack/lib/action_controller/base.rb
@@ -650,9 +650,6 @@ module ActionController #:nodoc:
# Note that the partial filename must also be a valid Ruby variable name,
# so e.g. 2005 and register-user are invalid.
#
- # _Deprecation_ _notice_: This used to have the signatures
- # <tt>render_partial(partial_path = default_template_name, object = nil, local_assigns = {})</tt> and
- # <tt>render_partial_collection(partial_name, collection, partial_spacer_template = nil, local_assigns = {})</tt>.
#
# == Automatic etagging
#
@@ -907,12 +904,12 @@ module ActionController #:nodoc:
def render_partial(partial_path = default_template_name, object = nil, local_assigns = nil, status = nil) #:nodoc:
add_variables_to_assigns
- render_text(@template.render_partial(partial_path, object, local_assigns), status)
+ render_text(@template.send(:render_partial, partial_path, object, local_assigns), status)
end
def render_partial_collection(partial_name, collection, partial_spacer_template = nil, local_assigns = nil, status = nil) #:nodoc:
add_variables_to_assigns
- render_text(@template.render_partial_collection(partial_name, collection, partial_spacer_template, local_assigns), status)
+ render_text(@template.send(:render_partial_collection, partial_name, collection, partial_spacer_template, local_assigns), status)
end
def render_with_layout(template_name = default_template_name, status = nil, layout = nil) #:nodoc: