Skip to content
Browse files

Fix for missing before_filter on second request in development mode

  • Loading branch information...
1 parent 322bff9 commit f2aa0482b3d7a5ee0c5cdcdd648d0e4d796057c4 @stffn stffn committed Mar 19, 2010
Showing with 1 addition and 3 deletions.
  1. +1 −3 lib/declarative_authorization/in_controller.rb
View
4 lib/declarative_authorization/in_controller.rb
@@ -274,9 +274,7 @@ def filter_access_to (*args, &filter_block)
context = options[:context]
actions = args.flatten
- if all_filter_access_permissions.empty?
- before_filter :filter_access_filter
- end
+ before_filter :filter_access_filter
filter_access_permissions.each do |perm|
perm.remove_actions(actions)

0 comments on commit f2aa048

Please sign in to comment.
Something went wrong with that request. Please try again.