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

Version Path
dradis-calculator_dread-3.19.0 lib/dradis/plugins/calculators/dread/engine.rb
dradis-calculator_dread-3.18.0 lib/dradis/plugins/calculators/dread/engine.rb
dradis-calculator_dread-3.17.0 lib/dradis/plugins/calculators/dread/engine.rb
dradis-calculator_dread-3.16.0 lib/dradis/plugins/calculators/dread/engine.rb
dradis-calculator_dread-3.15.0 lib/dradis/plugins/calculators/dread/engine.rb
dradis-calculator_dread-3.14.0 lib/dradis/plugins/calculators/dread/engine.rb
dradis-calculator_dread-3.13.0 lib/dradis/plugins/calculators/dread/engine.rb
dradis-calculator_dread-3.12.0 lib/dradis/plugins/calculators/dread/engine.rb
dradis-calculator_dread-3.11.0 lib/dradis/plugins/calculators/dread/engine.rb
dradis-calculator_dread-3.10.0 lib/dradis/plugins/calculators/dread/engine.rb
dradis-calculator_dread-3.9.0 lib/dradis/plugins/calculators/dread/engine.rb
dradis-calculator_dread-3.8.0 lib/dradis/plugins/calculators/dread/engine.rb
dradis-calculator_dread-3.7.0 lib/dradis/plugins/calculators/dread/engine.rb
dradis-calculator_dread-3.6.0 lib/dradis/plugins/calculators/dread/engine.rb