Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

deprecate Base#assign_default_content_type_and_charset

  • Loading branch information...
commit b99442933d9a4ffa7793d2cb2f73b2e9f22d2605 1 parent f8f0779
@jeremy jeremy authored
Showing with 5 additions and 0 deletions.
  1. +5 −0 actionpack/lib/action_controller/base.rb
View
5 actionpack/lib/action_controller/base.rb
@@ -1218,6 +1218,11 @@ def assign_names
@action_name = (params['action'] || 'index')
end
+ def assign_default_content_type_and_charset
+ response.assign_default_content_type_and_charset!
+ end
+ deprecate :assign_default_content_type_and_charset => :'response.assign_default_content_type_and_charset!'
+
def action_methods
self.class.action_methods
end
Please sign in to comment.
Something went wrong with that request. Please try again.