require 'friendly_id' require 'publishable' module KnowledgeBase class Engine < ::Rails::Engine isolate_namespace KnowledgeBase config.to_prepare do Dir.glob(Rails.root + "app/decorators/**/*_decorator*.rb").each do |c| require_dependency(c) end end initializer 'tasks.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