diff options
author | Carlos Antonio da Silva <carlosantoniodasilva@gmail.com> | 2015-01-04 18:20:17 -0200 |
---|---|---|
committer | Carlos Antonio da Silva <carlosantoniodasilva@gmail.com> | 2015-01-04 18:22:09 -0200 |
commit | afd5e9a7ff0072e482b0b0e8e238d21b070b6280 (patch) | |
tree | d552dcef33775701e52f3f8979ff48753ffb0bef /actionpack/lib | |
parent | fc12655be5affa692a80d9439e93c7e897f06eef (diff) | |
download | rails-afd5e9a7ff0072e482b0b0e8e238d21b070b6280.tar.gz rails-afd5e9a7ff0072e482b0b0e8e238d21b070b6280.tar.bz2 rails-afd5e9a7ff0072e482b0b0e8e238d21b070b6280.zip |
Remove respond_to/respond_with placeholder methods
This functionality has been extracted to the responders gem.
Diffstat (limited to 'actionpack/lib')
-rw-r--r-- | actionpack/lib/action_controller/metal/mime_responds.rb | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/actionpack/lib/action_controller/metal/mime_responds.rb b/actionpack/lib/action_controller/metal/mime_responds.rb index ac1f209232..a2a5f67b1e 100644 --- a/actionpack/lib/action_controller/metal/mime_responds.rb +++ b/actionpack/lib/action_controller/metal/mime_responds.rb @@ -3,26 +3,6 @@ require 'abstract_controller/collector' module ActionController #:nodoc: module MimeResponds - extend ActiveSupport::Concern - - module ClassMethods - def respond_to(*) - raise NoMethodError, "The controller-level `respond_to' feature has " \ - "been extracted to the `responders` gem. Add it to your Gemfile to " \ - "continue using this feature:\n" \ - " gem 'responders', '~> 2.0'\n" \ - "Consult the Rails upgrade guide for details." - end - end - - def respond_with(*) - raise NoMethodError, "The `respond_with' feature has been extracted " \ - "to the `responders` gem. Add it to your Gemfile to continue using " \ - "this feature:\n" \ - " gem 'responders', '~> 2.0'\n" \ - "Consult the Rails upgrade guide for details." - end - # Without web-service support, an action which collects the data for displaying a list of people # might look something like this: # |