lib/tapioca/dsl/compilers/action_mailer.rb in tapioca-0.11.17 vs lib/tapioca/dsl/compilers/action_mailer.rb in tapioca-0.12.0
- old
+ new
@@ -1,12 +1,8 @@
# typed: strict
# frozen_string_literal: true
-begin
- require "action_mailer"
-rescue LoadError
- return
-end
+return unless defined?(ActionMailer::Base)
module Tapioca
module Dsl
module Compilers
# `Tapioca::Dsl::Compilers::ActionMailer` generates RBI files for subclasses of