From a485633b16abd64b0955010fa93e0bc4894c7b7c Mon Sep 17 00:00:00 2001 From: Godfrey Chan Date: Sun, 17 Aug 2014 12:19:06 -0700 Subject: `responders` 1.x won't do it. Told you to RTFM for details! --- actionpack/lib/action_controller/metal/mime_responds.rb | 9 ++++++--- actionpack/test/controller/mime/responders_test.rb | 2 ++ 2 files changed, 8 insertions(+), 3 deletions(-) (limited to 'actionpack') diff --git a/actionpack/lib/action_controller/metal/mime_responds.rb b/actionpack/lib/action_controller/metal/mime_responds.rb index 5c869d4ce2..dc572f13d2 100644 --- a/actionpack/lib/action_controller/metal/mime_responds.rb +++ b/actionpack/lib/action_controller/metal/mime_responds.rb @@ -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 diff --git a/actionpack/test/controller/mime/responders_test.rb b/actionpack/test/controller/mime/responders_test.rb index 416e3191e6..032b4c0ab1 100644 --- a/actionpack/test/controller/mime/responders_test.rb +++ b/actionpack/test/controller/mime/responders_test.rb @@ -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 -- cgit v1.2.3