diff options
author | José Valim <jose.valim@gmail.com> | 2010-03-08 23:13:24 +0100 |
---|---|---|
committer | José Valim <jose.valim@gmail.com> | 2010-03-08 23:25:16 +0100 |
commit | 8f082ff4217175f52234f2223658619a9c923afc (patch) | |
tree | 10b106df434109c5b5a117a06239a86be8266053 /actionpack/lib/action_controller | |
parent | 01f0e47663bbbc593af0c36d4cf49124b200e3d8 (diff) | |
download | rails-8f082ff4217175f52234f2223658619a9c923afc.tar.gz rails-8f082ff4217175f52234f2223658619a9c923afc.tar.bz2 rails-8f082ff4217175f52234f2223658619a9c923afc.zip |
Clean LookupContext API.
Diffstat (limited to 'actionpack/lib/action_controller')
-rw-r--r-- | actionpack/lib/action_controller/metal/compatibility.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/actionpack/lib/action_controller/metal/compatibility.rb b/actionpack/lib/action_controller/metal/compatibility.rb index 5cad0814ca..ab8d87b2c4 100644 --- a/actionpack/lib/action_controller/metal/compatibility.rb +++ b/actionpack/lib/action_controller/metal/compatibility.rb @@ -50,8 +50,9 @@ module ActionController end def _normalize_options(options) - # TODO Deprecate this. Rails 2.x allowed to give a template as action. if options[:action] && options[:action].to_s.include?(?/) + ActiveSupport::Deprecation.warn "Giving a path to render :action is deprecated. " << + "Please use render :template instead", caller options[:template] = options.delete(:action) end |