Sha256: b530f7e8bd4e26138d457494a922f1c1602232344324a18dd8929249fff67cd4

Contents?: true

Size: 960 Bytes

Versions: 3

Compression:

Stored size: 960 Bytes

Contents

module WeBridgeRailsEngineOrgs
  class Engine < ::Rails::Engine
    config.generators do |g|
      g.test_framework      :rspec, fixture: false, view_specs: true, helper_specs: true, controller_specs: true, request_specs: true, route_specs: true, model_specs: true
      g.fixture_replacement :factory_girl, :dir => 'spec/factories'
      g.template_engine :builder
      g.assets true
      g.helper true
      g.stylesheets true
      g.javascripts true
    end
    config.autoload_paths << File.expand_path('../../../app/controllers/concerns', __FILE__)
    initializer :append_migrations_and_seeds 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
        config.paths["db/seeds.rb"].existent.each do |expanded_path|
          app.config.paths["db/seeds.rb"] << expanded_path
        end
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
we_bridge_rails_engine_orgs-0.1.5 lib/we_bridge_rails_engine_orgs/engine.rb
we_bridge_rails_engine_orgs-0.1.4 lib/we_bridge_rails_engine_orgs/engine.rb
we_bridge_rails_engine_orgs-0.1.3 lib/we_bridge_rails_engine_orgs/engine.rb