Sha256: 4e85b830ac47669cf5b3cac922f6f3b4231407625a058efc3e5dc9c662ecd1db

Contents?: true

Size: 327 Bytes

Versions: 2

Compression:

Stored size: 327 Bytes

Contents

module Rubocop
  module Ruby27
    class Railtie < Rails::Railtie
      railtie_name :rubocop_ruby2_7

      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-ruby2_7-2.0.3 lib/rubocop/ruby2_7/railtie.rb
rubocop-ruby2_7-2.0.2 lib/rubocop/ruby2_7/railtie.rb