lib/hanami/commands/generate/mailer.rb in hanami-0.7.3 vs lib/hanami/commands/generate/mailer.rb in hanami-0.8.0

- old
+ new

@@ -68,11 +68,11 @@ private # @since 0.5.0 # @api private def assert_name! - if name.nil? || name.strip.empty? - raise ArgumentError.new("Missing mailer name") + if argument_blank?(name) + raise ArgumentError.new('Mailer name is missing') end end # @since 0.5.0 # @api private