Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fix broken GemDependency#==. You should ALWAYS check the class!

  • Loading branch information...
commit 01a9fbbcca6f5345fbf9522e28cda0ae17899f67 1 parent 8d4ca9e
Ryan Davis zenspider authored
Showing with 2 additions and 1 deletion.
  1. +2 −1  railties/lib/rails/gem_dependency.rb
3  railties/lib/rails/gem_dependency.rb
View
@@ -274,7 +274,8 @@ def write_specification(spec)
end
def ==(other)
- self.name == other.name && self.requirement == other.requirement
+ Gem::Dependency === other.class &&
+ self.name == other.name && self.requirement == other.requirement
end
alias_method :eql?, :"=="
Please sign in to comment.
Something went wrong with that request. Please try again.