lib/fume/cancan/controller_extensions.rb in fume-cancan-0.0.4 vs lib/fume/cancan/controller_extensions.rb in fume-cancan-0.1.0

- old
+ new

@@ -9,10 +9,10 @@ def authorize_object(*args) options = args.extract_options! object = args.shift || options[:object] filter_options = options.slice(:only, :except) - before_filter(filter_options || {}) do |controller| + before_action(filter_options || {}) do |controller| controller.send :authorize_object!, object, options end end end