Sha256: 7d2004ecc7e4dee10e0950adf93399472f2d0b8f49ba6c76979896fca5b14f30

Contents?: true

Size: 648 Bytes

Versions: 1

Compression:

Stored size: 648 Bytes

Contents

require 'rails'

module Heartwood
  class Engine < ::Rails::Engine

    isolate_namespace Heartwood

    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('heartwood').gem_dir.to_s
    end

  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
heartwood-0.0.1 lib/heartwood/engine.rb