Skip to content

Commit afd5e9a

Browse files
Remove respond_to/respond_with placeholder methods
This functionality has been extracted to the responders gem.
1 parent fc12655 commit afd5e9a

File tree

3 files changed

+5
-52
lines changed

3 files changed

+5
-52
lines changed

actionpack/CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
* Remove `respond_to`/`respond_with` placeholder methods, this functionality
2+
has been extracted to the `responders` gem.
3+
4+
*Carlos Antonio da Silva*
5+
16
* Remove deprecated assertion files.
27

38
*Rafael Mendonça França*

actionpack/lib/action_controller/metal/mime_responds.rb

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -3,26 +3,6 @@
33

44
module ActionController #:nodoc:
55
module MimeResponds
6-
extend ActiveSupport::Concern
7-
8-
module ClassMethods
9-
def respond_to(*)
10-
raise NoMethodError, "The controller-level `respond_to' feature has " \
11-
"been extracted to the `responders` gem. Add it to your Gemfile to " \
12-
"continue using this feature:\n" \
13-
" gem 'responders', '~> 2.0'\n" \
14-
"Consult the Rails upgrade guide for details."
15-
end
16-
end
17-
18-
def respond_with(*)
19-
raise NoMethodError, "The `respond_with' feature has been extracted " \
20-
"to the `responders` gem. Add it to your Gemfile to continue using " \
21-
"this feature:\n" \
22-
" gem 'responders', '~> 2.0'\n" \
23-
"Consult the Rails upgrade guide for details."
24-
end
25-
266
# Without web-service support, an action which collects the data for displaying a list of people
277
# might look something like this:
288
#

actionpack/test/controller/mime/responders_test.rb

Lines changed: 0 additions & 32 deletions
This file was deleted.

0 commit comments

Comments
 (0)