Sha256: 63d89953b05584f13e980460e0668d5b6e4198f4934053bef1cd6e66521af5d5
Contents?: true
Size: 720 Bytes
Versions: 13
Compression:
Stored size: 720 Bytes
Contents
# frozen_string_literal: true require "uff_db_loader" require "rails" module UffDbLoader class Railtie < Rails::Railtie railtie_name "uff_db_loader" initializer "uff_db_loader.setup" do |app| UffDbLoader.configure do |config| config.dumps_directory = Rails.root.join("dumps") config.database_config_file = Rails.root.join("config", "database.yml") config.app_name = (Rails.application.class.respond_to?(:parent_name) ? Rails.application.class.parent_name : Rails.application.class.module_parent_name).downcase end end rake_tasks do path = File.expand_path(__dir__) Dir.glob("#{path}/uff_db_loader/tasks/*.rake").each { |f| load f } end end end
Version data entries
13 entries across 13 versions & 1 rubygems