Sha256: 02d73148565975ddc8bbacd17f1f371eee7a66f09e6f59d416274e512cfce0fc

Contents?: true

Size: 385 Bytes

Versions: 2

Compression:

Stored size: 385 Bytes

Contents

module HighVoltage
  class Engine < Rails::Engine
    initializer "Set up default parent engine" do |app|
      HighVoltage.parent_engine ||= Rails.application
    end

    initializer "Require concerns path" do |app|
      concerns_path = "app/controllers/concerns"

      unless app.paths.keys.include?(concerns_path)
        app.paths.add(concerns_path)
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
high_voltage-4.0.0 lib/high_voltage/engine.rb
high_voltage-4.0.0.rc1 lib/high_voltage/engine.rb