Skip to content

Commit

Permalink
Fix broken GemDependency#==. You should ALWAYS check the class!
Browse files Browse the repository at this point in the history
  • Loading branch information
zenspider committed May 12, 2011
1 parent 8d4ca9e commit 01a9fbb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion railties/lib/rails/gem_dependency.rb
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -274,7 +274,8 @@ def write_specification(spec)
end end


def ==(other) def ==(other)
self.name == other.name && self.requirement == other.requirement Gem::Dependency === other.class &&
self.name == other.name && self.requirement == other.requirement
end end
alias_method :eql?, :"==" alias_method :eql?, :"=="


Expand Down

0 comments on commit 01a9fbb

Please sign in to comment.