Sha256: 344470649e2fd721d8d797829684d2ab9fda5f4ece45914075230d46b9d6d83d

Contents?: true

Size: 760 Bytes

Versions: 2

Compression:

Stored size: 760 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 }
      ::ActionDispatch::Routing::Mapper.send(:include, Neutral::Helpers::Routes)
      ::ApplicationController.send(:include, Neutral::Helpers::CurrentVoter)
    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

2 entries across 2 versions & 1 rubygems

Version Path
neutral-0.0.5 lib/neutral/engine.rb
neutral-0.0.4 lib/neutral/engine.rb