diff options
author | José Valim <jose.valim@gmail.com> | 2010-08-29 21:08:14 -0300 |
---|---|---|
committer | José Valim <jose.valim@gmail.com> | 2010-08-29 21:08:14 -0300 |
commit | ba52748d05da4f95a8f371d628af97b76644bdd3 (patch) | |
tree | 0f104ebfdb7c5dfd25dba227d7e6708b904e08c6 /actionpack/lib/action_controller/metal/compatibility.rb | |
parent | 800695ad4cef33347bcfef6df7634ff533582449 (diff) | |
download | rails-ba52748d05da4f95a8f371d628af97b76644bdd3.tar.gz rails-ba52748d05da4f95a8f371d628af97b76644bdd3.tar.bz2 rails-ba52748d05da4f95a8f371d628af97b76644bdd3.zip |
Remove deprecated support to <% form_for %> and several ActionController::Base methods.
Diffstat (limited to 'actionpack/lib/action_controller/metal/compatibility.rb')
-rw-r--r-- | actionpack/lib/action_controller/metal/compatibility.rb | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/actionpack/lib/action_controller/metal/compatibility.rb b/actionpack/lib/action_controller/metal/compatibility.rb index d49465fa0b..7a9c91f563 100644 --- a/actionpack/lib/action_controller/metal/compatibility.rb +++ b/actionpack/lib/action_controller/metal/compatibility.rb @@ -6,6 +6,16 @@ module ActionController end module ClassMethods + # TODO Remove this after the old router map is removed. + def resource_action_separator + @resource_action_separator ||= "/" + end + + # TODO Remove this after the old router map is removed. + def resource_action_separator=(val) + ActiveSupport::Deprecation.warn "ActionController::Base.resource_action_separator is deprecated" + @resource_action_separator = val + end end # Temporary hax @@ -39,12 +49,6 @@ module ActionController def assign_shortcuts(*) end def _normalize_options(options) - 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 - options[:text] = nil if options.delete(:nothing) == true options[:text] = " " if options.key?(:text) && options[:text].nil? super |