lib/ixtlan/guard/railtie.rb in ixtlan-guard-0.8.1 vs lib/ixtlan/guard/railtie.rb in ixtlan-guard-0.8.2

- old
+ new

@@ -22,12 +22,9 @@ :cache => app.config.cache_classes } options[:logger] = logger unless defined?(Slf4r) FileUtils.mkdir_p(app.config.guards_dir) - controller = ::ApplicationController rescue ::ActionController::Base - controller.send(:before_filter, :authorize) - app.config.guard = Ixtlan::Guard::Guard.new(options) end config.generators do require 'rails/generators'