lib/neutral/engine.rb in neutral-0.0.3 vs lib/neutral/engine.rb in neutral-0.0.4

- old
+ new

@@ -4,17 +4,13 @@ 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 - ::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