aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorMisty De Meo2012-11-28 10:58:29 -0600
committerMisty De Meo2012-11-28 10:58:29 -0600
commit9c294364c63e61da8a1e292ca8f7894354e5218d (patch)
treedfd1e6e8ba640be922fbf66906bc5a547aa30476 /Library
parenta171ec18fe0b198613b8cc198118d8573cba0289 (diff)
downloadbrew-9c294364c63e61da8a1e292ca8f7894354e5218d.tar.bz2
Fix Formula.factory for Formula subclasses
Fixes Homebrew/homebrew#16288.
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/formula.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/Library/Homebrew/formula.rb b/Library/Homebrew/formula.rb
index cb78221fd..d553846e3 100644
--- a/Library/Homebrew/formula.rb
+++ b/Library/Homebrew/formula.rb
@@ -395,7 +395,7 @@ class Formula
raise LoadError
end
- raise NameError if klass.superclass != Formula
+ raise NameError if !klass.ancestors.include? Formula
return klass.new(name) if install_type == :from_name
return klass.new(name, path.to_s)