diff options
author | Mark Dodwell <mark@mkdynamic.co.uk> | 2012-07-04 22:34:31 -0700 |
---|---|---|
committer | Mark Dodwell <mark@mkdynamic.co.uk> | 2012-07-04 22:34:31 -0700 |
commit | 9208879d6e3824dda5cf4cdf0d616e6ed5d3240e (patch) | |
tree | 0b194efde84442cda591e38865e845180a67feba | |
parent | 9f57ee595a318033485788e9dc59e8cf08b34083 (diff) | |
download | rails-9208879d6e3824dda5cf4cdf0d616e6ed5d3240e.tar.gz rails-9208879d6e3824dda5cf4cdf0d616e6ed5d3240e.tar.bz2 rails-9208879d6e3824dda5cf4cdf0d616e6ed5d3240e.zip |
Use ArgumentError vs. RuntimeError, which is more precise.
-rw-r--r-- | actionmailer/lib/action_mailer/collector.rb | 2 |
1 files changed, 1 insertions, 1 deletions
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 |