lib/tapioca/dsl/compilers/active_storage.rb in tapioca-0.11.17 vs lib/tapioca/dsl/compilers/active_storage.rb in tapioca-0.12.0
- old
+ new
@@ -1,13 +1,8 @@
# typed: strict
# frozen_string_literal: true
-begin
- require "active_storage"
- require "active_storage/reflection"
-rescue LoadError
- return
-end
+return unless defined?(ActiveStorage::Reflection::ActiveRecordExtensions::ClassMethods)
module Tapioca
module Dsl
module Compilers
# `Tapioca::Dsl::Compilers::ActiveStorage` decorates RBI files for subclasses of