Permalink
Browse files

Removed buggy GemDependency#requirement override. Overrides should NE…

…VER change the semantics of the parent (returning nil if default).
  • Loading branch information...
1 parent 01a9fbb commit c20a4d18e36a13b5eea3155beba36bb582c0cc87 @zenspider zenspider committed May 12, 2011
Showing with 0 additions and 12 deletions.
  1. +0 −12 railties/lib/rails/gem_dependency.rb
View
12 railties/lib/rails/gem_dependency.rb
@@ -117,18 +117,6 @@ def specification=(s)
@spec = s
end
- if method_defined?(:requirement)
- def requirement
- req = super
- req unless req == Gem::Requirement.default
- end
- else
- def requirement
- req = version_requirements
- req unless req == Gem::Requirement.default
- end
- end
-
def built?
return false unless frozen?

0 comments on commit c20a4d1

Please sign in to comment.