Sha256: da0d6a7f9eb8c785d8ed25bd268b565e21b1512bfca20b69de54a3543dc545ac
Contents?: true
Size: 815 Bytes
Versions: 14
Compression:
Stored size: 815 Bytes
Contents
module Dradis::Plugins::Calculators::DREAD class Engine < ::Rails::Engine isolate_namespace Dradis::Plugins::Calculators::DREAD include Dradis::Plugins::Base provides :addon description 'Provides a DREAD score calculator under /calculators/dread' initializer 'calculator_dread.asset_precompile_paths' do |app| app.config.assets.precompile += ["dradis/plugins/calculators/dread/manifests/*"] end initializer "calculator_dread.inflections" do |app| ActiveSupport::Inflector.inflections do |inflect| inflect.acronym('DREAD') end end initializer 'calculator_dread.mount_engine' do Rails.application.routes.append do mount Dradis::Plugins::Calculators::DREAD::Engine => '/calculators/', as: :dread_calculator end end end end
Version data entries
14 entries across 14 versions & 1 rubygems