Permalink
Browse files

Make blocks in Qualifier's actually work

  • Loading branch information...
1 parent 87b26b5 commit b492e8385aa316bd08b86c6d4b82ae334a5d601f @ferrous26 ferrous26 committed Mar 12, 2012
Showing with 4 additions and 1 deletion.
  1. +4 −1 lib/accessibility/qualifier.rb
@@ -55,7 +55,10 @@ def compile criteria, block
[key, [filter, key, value]]
end
end
- @filters << [:self, [:block_check]] if block
+ if block
+ @block = block
+ @filters << [:self, [:block_check]]
+ end
end
##

0 comments on commit b492e83

Please sign in to comment.