Skip to content

Commit

Permalink
Check conditionals.
Browse files Browse the repository at this point in the history
  • Loading branch information
Simon Oulevay committed Dec 19, 2014
1 parent 0db6ef4 commit 5170612
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/errapi/configuration.rb
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ def validator name, options = {}

def register_condition factory
factory.conditionals.each do |conditional|
raise ArgumentError, "Conditional #{conditional} should start with 'if' or 'unless'." unless conditional.to_s.match /^(if|unless)/
@conditions[conditional] = factory
end
end
Expand Down

0 comments on commit 5170612

Please sign in to comment.