lib/tapioca/dsl/compilers/rails_generators.rb in tapioca-0.11.17 vs lib/tapioca/dsl/compilers/rails_generators.rb in tapioca-0.12.0
- old
+ new
@@ -1,13 +1,8 @@
# typed: strict
# frozen_string_literal: true
-begin
- require "rails/generators"
- require "rails/generators/app_base"
-rescue LoadError
- return
-end
+return unless defined?(Rails::Generators::Base)
module Tapioca
module Dsl
module Compilers
# `Tapioca::Dsl::Compilers::RailsGenerators` generates RBI files for Rails generators