diff options
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Homebrew/formulary.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Library/Homebrew/formulary.rb b/Library/Homebrew/formulary.rb index 350854bba..189160d54 100644 --- a/Library/Homebrew/formulary.rb +++ b/Library/Homebrew/formulary.rb @@ -65,7 +65,7 @@ class Formulary end klass = Formulary.get_formula_class(name) - if (klass == Formula) || !klass.ancestors.include?(Formula) + if klass == Formula || !(klass < Formula) raise FormulaUnavailableError.new(name) end klass |
