Sha256: f7690ec136d8305d923e5562b0b4f4d83f649c1bde399230821d68c6fea06527

Contents?: true

Size: 789 Bytes

Versions: 3

Compression:

Stored size: 789 Bytes

Contents

require "blogr/configuration"

module Blogr
  class Engine < ::Rails::Engine
    
    require "batch-rails-4"

    isolate_namespace Blogr

    config.generators do |g|
    	g.orm             :active_record
      g.test_framework      :rspec, fixture: false, view_specs: false
      g.fixture_replacement :factory_girl, dir: "spec/factories"
      g.stylesheets     false
      g.javascripts     false
      g.helper          false
    end

    initializer "blogr.initialize" do |app|
      # Load migrations
      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

    generators do
      require "blogr/setup_generator"
    end

  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
blogr-0.0.8 lib/blogr/engine.rb
blogr-0.0.7 lib/blogr/engine.rb
blogr-0.0.6 lib/blogr/engine.rb