Permalink
Browse files

Use ArgumentError vs. RuntimeError, which is more precise.

  • Loading branch information...
1 parent 9f57ee5 commit 9208879d6e3824dda5cf4cdf0d616e6ed5d3240e @mkdynamic mkdynamic committed Jul 5, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 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 9208879

Please sign in to comment.