Sha256: 7dd40ceb66623001417f54cf7b6fe56a81ef4db29ac675d0bced1e793513d476

Contents?: true

Size: 775 Bytes

Versions: 4

Compression:

Stored size: 775 Bytes

Contents

module Neutral
  class Engine < ::Rails::Engine
    isolate_namespace Neutral

    initializer 'extensions' do
      ::ActiveSupport.on_load(:active_record) { extend Neutral::Model::ActiveRecordExtension }
      ::ActiveSupport.on_load(:action_view) { include Neutral::Helpers::ActionViewExtension }
      ::ActiveSupport.on_load(:action_controller) { include Neutral::Helpers::CurrentVoter }
      ::ActionDispatch::Routing::Mapper.send(:include, Neutral::Helpers::Routes)
    end

    config.after_initialize do
      require 'neutral/application_controller'
    end

    config.generators do |g|
      g.test_framework :rspec, fixture: false
      g.fixture_replacement :factory_girl, dir: 'spec/factories'
      g.assets = false
      g.helpers = false
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
neutral-0.0.10 lib/neutral/engine.rb
neutral-0.0.9 lib/neutral/engine.rb
neutral-0.0.8 lib/neutral/engine.rb
neutral-0.0.7 lib/neutral/engine.rb