diff options
author | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2015-09-28 17:45:53 -0300 |
---|---|---|
committer | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2015-09-28 17:45:53 -0300 |
commit | b0ce1415fbe65ade1cfa9154d4f3faf748b5f841 (patch) | |
tree | 0bcca92a543c5efc6e96868d93f3ff592ce451cf | |
parent | 58a0c2ea98cd0d46965e4ce7346a1159dce0dbd8 (diff) | |
download | rails-b0ce1415fbe65ade1cfa9154d4f3faf748b5f841.tar.gz rails-b0ce1415fbe65ade1cfa9154d4f3faf748b5f841.tar.bz2 rails-b0ce1415fbe65ade1cfa9154d4f3faf748b5f841.zip |
Revert "proper raise ArgumentError, divided large text new line"
This reverts commit 4147ab730e807f622e5260a5f876749ff41fef26.
-rw-r--r-- | actionpack/lib/abstract_controller/url_for.rb | 2 | ||||
-rw-r--r-- | actionpack/lib/action_dispatch/http/mime_negotiation.rb | 6 |
2 files changed, 4 insertions, 4 deletions
diff --git a/actionpack/lib/abstract_controller/url_for.rb b/actionpack/lib/abstract_controller/url_for.rb index 5f22b45251..72d07b0927 100644 --- a/actionpack/lib/abstract_controller/url_for.rb +++ b/actionpack/lib/abstract_controller/url_for.rb @@ -10,7 +10,7 @@ module AbstractController include ActionDispatch::Routing::UrlFor def _routes - raise "In order to use #url_for, you must include routing helpers explicitly.\n" \ + raise "In order to use #url_for, you must include routing helpers explicitly. " \ "For instance, `include Rails.application.routes.url_helpers`." end diff --git a/actionpack/lib/action_dispatch/http/mime_negotiation.rb b/actionpack/lib/action_dispatch/http/mime_negotiation.rb index 7a99bc235c..cab60a508a 100644 --- a/actionpack/lib/action_dispatch/http/mime_negotiation.rb +++ b/actionpack/lib/action_dispatch/http/mime_negotiation.rb @@ -81,9 +81,9 @@ module ActionDispatch if variant.all? { |v| v.is_a?(Symbol) } @variant = ActiveSupport::ArrayInquirer.new(variant) else - raise ArgumentError, "request.variant must be set to a Symbol or an Array of Symbols.\n" \ - "For security reasons, never directly set the variant to a user-provided value,\n" \ - "like params[:variant].to_sym. Check user-provided value against a whitelist first,\n" \ + raise ArgumentError, "request.variant must be set to a Symbol or an Array of Symbols. " \ + "For security reasons, never directly set the variant to a user-provided value, " \ + "like params[:variant].to_sym. Check user-provided value against a whitelist first, " \ "then set the variant: request.variant = :tablet if params[:variant] == 'tablet'" end end |