Permalink
Browse files

remove .new from raise ActionController::UnknownFormat

  • Loading branch information...
1 parent ec4045c commit 6471ced656ad0e61f12b2a7d6f51ef5b2408e64a @ssoroka ssoroka committed May 6, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 actionpack/lib/action_controller/metal/mime_responds.rb
@@ -375,7 +375,7 @@ def retrieve_collector_from_mimes(mimes=nil, &block) #:nodoc:
lookup_context.rendered_format = lookup_context.formats.first
collector
else
- raise ActionController::UnknownFormat.new
+ raise ActionController::UnknownFormat
end
end

0 comments on commit 6471ced

Please sign in to comment.