Skip to content
Browse files

Merge pull request #6969 from mkdynamic/patch-1

Use ArgumentError vs. RuntimeError, which is more precise
  • Loading branch information...
2 parents 9f57ee5 + 9208879 commit 325735577ef945707314776809b8614f95d87f49 @jeremy jeremy committed Jul 4, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 actionmailer/lib/action_mailer/collector.rb
View
2 actionmailer/lib/action_mailer/collector.rb
@@ -15,7 +15,7 @@ def initialize(context, &block)
def any(*args, &block)
options = args.extract_options!
- raise "You have to supply at least one format" if args.empty?
+ raise ArgumentError, "You have to supply at least one format" if args.empty?
args.each { |type| send(type, options.dup, &block) }
end
alias :all :any

0 comments on commit 3257355

Please sign in to comment.
Something went wrong with that request. Please try again.