Skip to content

Commit

Permalink
Remove respond_to/respond_with placeholder methods
Browse files Browse the repository at this point in the history
This functionality has been extracted to the responders gem.
  • Loading branch information
carlosantoniodasilva committed Jan 4, 2015
1 parent fc12655 commit afd5e9a
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 52 deletions.
5 changes: 5 additions & 0 deletions actionpack/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
* Remove `respond_to`/`respond_with` placeholder methods, this functionality
has been extracted to the `responders` gem.

*Carlos Antonio da Silva*

* Remove deprecated assertion files.

*Rafael Mendonça França*
Expand Down
20 changes: 0 additions & 20 deletions actionpack/lib/action_controller/metal/mime_responds.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,26 +3,6 @@

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:
#
Expand Down
32 changes: 0 additions & 32 deletions actionpack/test/controller/mime/responders_test.rb

This file was deleted.

1 comment on commit afd5e9a

@bf4
Copy link
Contributor

@bf4 bf4 commented on afd5e9a Jul 3, 2016

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

MissingRenderer is still leftover from responders . Should it be removed as well? #22519 (comment)

Please sign in to comment.