From 9208879d6e3824dda5cf4cdf0d616e6ed5d3240e Mon Sep 17 00:00:00 2001 From: Mark Dodwell Date: Wed, 4 Jul 2012 22:34:31 -0700 Subject: Use ArgumentError vs. RuntimeError, which is more precise. --- actionmailer/lib/action_mailer/collector.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'actionmailer/lib') diff --git a/actionmailer/lib/action_mailer/collector.rb b/actionmailer/lib/action_mailer/collector.rb index 17b22aea2a..b8d1db9558 100644 --- a/actionmailer/lib/action_mailer/collector.rb +++ b/actionmailer/lib/action_mailer/collector.rb @@ -15,7 +15,7 @@ module ActionMailer #:nodoc: 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 -- cgit v1.2.3