Sha256: 1d5e8631b6b7537d022ea435dad9bf7542cca94ee58d1511f57038ec2e8adcfb

Contents?: true

Size: 327 Bytes

Versions: 2

Compression:

Stored size: 327 Bytes

Contents

module Rubocop
  module Ruby30
    class Railtie < Rails::Railtie
      railtie_name :rubocop_ruby3_0

      if Rails.env.test? || Rails.env.development?
        rake_tasks do
          path = File.expand_path(__dir__)
          Dir.glob("#{path}/rakelib/**/*.rake").each { |f| load f }
        end
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
rubocop-ruby3_0-2.0.3 lib/rubocop/ruby3_0/railtie.rb
rubocop-ruby3_0-2.0.2 lib/rubocop/ruby3_0/railtie.rb