Sha256: ba16d08ed36c70d0f38ddacb47dab8a4a07e2ec6ff418fe797d5a34f64687bf0

Contents?: true

Size: 642 Bytes

Versions: 3

Compression:

Stored size: 642 Bytes

Contents

require 'rails'

module Cambium
  class Engine < ::Rails::Engine

    isolate_namespace Cambium

    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

    initializer :append_migrations do |app|
      unless app.root.to_s.match root.to_s
        config.paths["db/migrate"].expanded.each do |expanded_path|
          app.config.paths["db/migrate"] << expanded_path
        end
      end
    end

    def root
      @root ||= Gem::Specification.find_by_name('cambium').gem_dir.to_s
    end

  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
cambium-1.3.2 lib/cambium/engine.rb
cambium-1.3.1 lib/cambium/engine.rb
cambium-1.3.0 lib/cambium/engine.rb