Sha256: 9807cf63c900c9e62cede814e8b9cb13f537e9333b84500893affc7fe22708e3

Contents?: true

Size: 318 Bytes

Versions: 3

Compression:

Stored size: 318 Bytes

Contents

require "rails/railtie"
require "pathname"

module TestData
  class Railtie < Rails::Railtie
    railtie_name :test_data

    rake_tasks do
      load Pathname.new(__dir__).join("rake.rb")
    end

    initializer "test_data.validate_data_up_to_date" do
      WarnsIfDumpIsNewerThanDatabase.new.call
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
test_data-0.3.2 lib/test_data/railtie.rb
test_data-0.3.1 lib/test_data/railtie.rb
test_data-0.3.0 lib/test_data/railtie.rb