Sha256: 8e80f1a7b585c661e563f44f07863b824c463e7259ab3965a27f99c1dfffd223

Contents?: true

Size: 864 Bytes

Versions: 3

Compression:

Stored size: 864 Bytes

Contents

module Mks
  module Auth
    class Engine < ::Rails::Engine
      isolate_namespace Mks::Auth

      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 'mks_auth.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

3 entries across 3 versions & 1 rubygems

Version Path
mks_auth-1.4.0 lib/mks/auth/engine.rb
mks_auth-1.2.0 lib/mks/auth/engine.rb
mks_auth-1.0.0 lib/mks/auth/engine.rb