Sha256: 9344f309295b3120530e9899203d8fcbf1537c4d150113c0a749caa89c310474

Contents?: true

Size: 327 Bytes

Versions: 2

Compression:

Stored size: 327 Bytes

Contents

module Rubocop
  module Ruby32
    class Railtie < Rails::Railtie
      railtie_name :rubocop_ruby3_2

      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_2-2.0.4 lib/rubocop/ruby3_2/railtie.rb
rubocop-ruby3_2-2.0.3 lib/rubocop/ruby3_2/railtie.rb