Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
How to use newer versions of RubyGems with older versions of Rails
# IN ENVIRONMENT.RB, ADD THESE LINES AFTER THE BOOT SECTION AND BEFORE THE INITIALIZER BLOCK
# (e.g. on line 13 of most environment.rb's):
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
You can’t perform that action at this time.