Sha256: f685dde54ac4b4cca522736d396dce45f9dc878c51533762e11f267c3fc9dde2

Contents?: true

Size: 617 Bytes

Versions: 30

Compression:

Stored size: 617 Bytes

Contents

module Renalware
  log "Adding default audits" do
    file_path = File.join(File.dirname(__FILE__), "audits.yml")
    yml_audits = YAML.load_file(file_path)
    yml_audits.each do |yml_audit|
      yml_audit.symbolize_keys!
      Reporting::Audit.find_or_create_by!(name: yml_audit[:name]) do |audit|
        audit.description = yml_audit[:description]
        audit.view_name = yml_audit[:view_name]
        audit.materialized = yml_audit[:materialized]
        audit.refresh_schedule = yml_audit[:refresh_schedule]
        audit.display_configuration = yml_audit[:display_configuration]
      end
    end
  end
end

Version data entries

30 entries across 30 versions & 1 rubygems

Version Path
renalware-core-2.0.16 db/seeds/default/reporting/audits.rb
renalware-core-2.0.15 db/seeds/default/reporting/audits.rb
renalware-core-2.0.14 db/seeds/default/reporting/audits.rb
renalware-core-2.0.13 db/seeds/default/reporting/audits.rb
renalware-core-2.0.12 db/seeds/default/reporting/audits.rb
renalware-core-2.0.11 db/seeds/default/reporting/audits.rb
renalware-core-2.0.9 db/seeds/default/reporting/audits.rb
renalware-core-2.0.8 db/seeds/default/reporting/audits.rb
renalware-core-2.0.7 db/seeds/default/reporting/audits.rb
renalware-core-2.0.5 db/seeds/default/reporting/audits.rb
renalware-core-2.0.4 db/seeds/default/reporting/audits.rb
renalware-core-2.0.3 db/seeds/default/reporting/audits.rb
renalware-core-2.0.2 db/seeds/default/reporting/audits.rb
renalware-core-2.0.1 db/seeds/default/reporting/audits.rb
renalware-core-2.0.0 db/seeds/default/reporting/audits.rb
renalware-core-2.0.0.pre.rc13 db/seeds/default/reporting/audits.rb
renalware-core-2.0.0.pre.rc11 db/seeds/default/reporting/audits.rb
renalware-core-2.0.0.pre.rc10 db/seeds/default/reporting/audits.rb
renalware-core-2.0.0.pre.rc9 db/seeds/default/reporting/audits.rb
renalware-core-2.0.0.pre.rc8 db/seeds/default/reporting/audits.rb