Sha256: 05b8b3bd79505ba4d1a1062b471a9a8664983aa7cedb5a89ae9ba307d286c6f7
Contents?: true
Size: 848 Bytes
Versions: 3
Compression:
Stored size: 848 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) end config.after_initialize do ::ApplicationController.class_eval do alias_method :current_voter, Neutral.config.current_voter_method helper_method :current_voter end 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
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
neutral-0.0.3 | lib/neutral/engine.rb |
neutral-0.0.2 | lib/neutral/engine.rb |
neutral-0.0.1 | lib/neutral/engine.rb |