Skip to content

Commit

Permalink
rules bug fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
kristianmandrup committed Nov 7, 2011
1 parent 6da7710 commit a9e973f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/cantango/ability_executor.rb
Expand Up @@ -5,7 +5,8 @@ def initialize candidate, options = {}
raise "Candidate must be something!" if !candidate
@candidate, @options = [candidate, options]
@rules = cached_rules + non_cached_rules
rules.flatten!.compact!
rules.flatten!
rules.compact!
end

def rules
Expand Down

0 comments on commit a9e973f

Please sign in to comment.