Sha256: d900ab152c35f291f797340186f56e7ff8120879518e63df1e6d3f83a67137fc

Contents?: true

Size: 938 Bytes

Versions: 9

Compression:

Stored size: 938 Bytes

Contents

require 'active_model_serializers'
require 'mks_auth'

module Logistics
  module Core
    class Engine < ::Rails::Engine
      isolate_namespace Logistics::Core

      initializer :append_migrations do |app|
        unless app.root.to_s.match root.to_s
          if app.config.app_code == 'PSH'
            config.paths['db/migrate'].expanded.each do |expanded_path|
              app.config.paths['db/migrate'] << expanded_path
            end
          end
        end
      end

      initializer 'logistics_core.factories', :after => 'factory_girl.set_factory_paths' do
        FactoryGirl.definition_file_paths << File.expand_path('../../../../spec/factories', __FILE__) if defined?(FactoryGirl)
      end

      config.generators do |g|
        g.test_framework :rspec, :fixture => false
        g.fixture_replacement :factory_girl, :dir => 'spec/factories'
        g.assets false
        g.helper false
      end
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
logistics_core-21.11.2 lib/logistics/core/engine.rb
logistics_core-21.11.1 lib/logistics/core/engine.rb
logistics_core-21.08.1 lib/logistics/core/engine.rb
logistics_core-21.03.1 lib/logistics/core/engine.rb
logistics_core-20.10.3 lib/logistics/core/engine.rb
logistics_core-20.10.2 lib/logistics/core/engine.rb
logistics_core-20.10.1 lib/logistics/core/engine.rb
logistics_core-20.9.1 lib/logistics/core/engine.rb
logistics_core-20.8.1 lib/logistics/core/engine.rb