Morshed Alam
Morshed Alam Software Architect

Undefined local variable or method `version_requirements' for ...

• By Morshed Alam • Ruby on Rails
I was getting the error while installing an older rails application. After googling I've got the solution from a discussion thread to add following block in right before the initialization in to config/environment.rb and worked for me.
if Gem::VERSION >= "1.3.6"
module Rails
class GemDependency
def requirement
r = super
(r == Gem::Requirement.default) ? nil : r
end
end
end
end

Comments (0)

No comments yet. Be the first to share your feedback or ask a question!

Leave a Comment