1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

responders 1.x won't do it. Told you to RTFM for details!

This commit is contained in:
Godfrey Chan 2014-08-17 12:19:06 -07:00
parent a5e2d2ef85
commit a485633b16
2 changed files with 8 additions and 3 deletions

View file

@ -9,15 +9,18 @@ module ActionController #:nodoc:
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. Consult the Rails upgrade guide for " \
"details."
"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. Consult the Rails upgrade guide for details."
"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

View file

@ -10,6 +10,7 @@ class ResponderTest < ActionController::TestCase
end
assert_includes e.message, '`responders` gem'
assert_includes e.message, '~> 2.0'
end
def test_respond_with
@ -26,5 +27,6 @@ class ResponderTest < ActionController::TestCase
end
assert_includes e.message, '`responders` gem'
assert_includes e.message, '~> 2.0'
end
end