Created
June 16, 2011 05:02
-
-
Save williamn/1028698 to your computer and use it in GitHub Desktop.
Fixing "undefined local variable or method `version_requirements' for #<Rails::GemDependency:0x...> (NameError)"
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Phillip Koebbe from Ruby on Rails suggested inserting following code between the "bootstrap" and | |
# "initialize" sections of enviroment.rb. This hack fixes the problem. | |
if Gem::VERSION >= "1.3.6" | |
module Rails | |
class GemDependency | |
def requirement | |
r = super | |
(r == Gem::Requirement.default) ? nil : r | |
end | |
end | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Thanks 👍