Sha256: 5af42f35a107add28d1faa8d263d61b1cf55db416d804a4bbfd563f931a3b878
Contents?: true
Size: 776 Bytes
Versions: 1
Compression:
Stored size: 776 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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
neutral-0.0.6 | lib/neutral/engine.rb |