lib/tapioca/dsl/compilers/active_model_attributes.rb in tapioca-0.11.17 vs lib/tapioca/dsl/compilers/active_model_attributes.rb in tapioca-0.12.0
- old
+ new
@@ -1,12 +1,8 @@
# typed: strict
# frozen_string_literal: true
-begin
- require "active_model"
-rescue LoadError
- return
-end
+return unless defined?(ActiveModel::Attributes)
module Tapioca
module Dsl
module Compilers
# `Tapioca::Dsl::Compilers::ActiveModelAttributes` decorates RBI files for all