lib/ixtlan/guard/railtie.rb in ixtlan-guard-0.7.0 vs lib/ixtlan/guard/railtie.rb in ixtlan-guard-0.7.2

- old
+ new

@@ -21,10 +21,10 @@ options[:logger] = logger unless defined?(Slf4r) FileUtils.mkdir_p(app.config.guards_dir) app.config.guard = Ixtlan::Guard::GuardNG.new(options) ::ActionController::Base.send(:include, Ixtlan::ActionController::Guard) - ::ActionController::Base.send(:before_filter, :authorization) + ::ActionController::Base.send(:before_filter, :authorize) ::ActionView::Base.send(:include, Ixtlan::Allowed) end config.generators do require 'rails/generators'