If you have a Rails 2.x app and hitting this, there is a simple fix while you wait to upgrade to Rails 3.

Edit your environment.rb file and inbetween the require ‘boot’ line and the Rails::Initializer line, insert the following Gem::VERSION if statement:

# Bootstrap the Rails environment, frameworks, and default configuration
require File.join(File.dirname(__FILE__), 'boot')

if Gem::VERSION >= "1.3.6"
  module Rails
    class GemDependency
      def requirement
        (super == Gem::Requirement.default) ? nil : super
      end
    end
  end
end

Rails::Initializer.run do |config|
# ....

It’s a hack, it might break with later and later releases of RubyGems. But it allowed me to get a 2.3.x Rails app running on a fairly current rubygems.

  1. Androme Says:

    Kind of a bit detailed post but worth reading. public administration degree | performing arts school | online fire science degree | Natural sciences School | Law School

  2. automotiveja Says:

    Quite a few participants expressed interest in the libertarian organizations on campus, such as YAL, Youth for Ron Paul, and Libertarian Longhorns (a more general blanket libertarian organization with which UT’s YAL and Youth for Ron Paul chapters coordinate).

  3. Richard Says:

    I have been having this bug in my Rail 2.x application. I have searched a lot of resources for a fix for this because this bug is too annoying and it bugs me. Moreover it is taking away a great deal of time from my working hours. I have certain down payments this month so I can’t afford to lose any more of my working hours. I really appreciate that you have bothered to share a fix for this , I need to have smtp server too. I hope it will work.

  4. mid tab Says:

    Quite a few participants expressed interest in the libertarian organizations on campus, such as YAL, Youth for Ron Paul, and Libertarian Longhorns (a more general blanket libertarian organization with which UT’s YAL and Youth for Ron Paul chapters coordinate).

  5. kimono bjj Says:

    Its really a nice article. It has good content. Thanks for sharing it.

  6. jaffa Says:

    In most languages, local variables are automatic variables stored on the call stack directly. This means that when a recursive function calls itself, local variables in each instance of the function are given separate memory address space. Thanks.
    Regards,
    Personal statement services review

  7. jaffa Says:

    In most languages, local variables are automatic variables stored on the call stack directly. This means that when a recursive function calls itself, local variables in each instance of the function are given separate memory address space. Thanks.
    Regards,
    Personal statement services review

  8. yacht charter italy Says:

    it is a nice solution for this issue… I will try to adapt it for my projects.

  9. collaboration software Says:

    It is and always has been completely fantastic.

  10. jibran Says:

    The best person to give you medical advice about liver disease is your doctor. Best thing we can do is recommend perhaps a good doctor if you need a second or third opinion. casino

  11. how long does it take to get a passport Says:

    In most languages, local variables are automatic variables stored on the call stack directly. This means that when a recursive function calls itself, local variables in each instance of the function are given separate memory address space. Thanks.

  12. jibran Says:

    If you have a Rails 2.x app and hitting this, there is a simple fix while you wait to upgrade to Rails 3. dubai business set up

  13. tøj til store kvinder Says:

    Good point, but I think that is the underlying point. I don’t blame the employee in this situation, it is an overal state of play in the Hotel and the culture that surrounds it.

  14. santa Says:

    A lot of resources for a fix for this because this bug is too annoying and it bugs me. Moreover it is taking away a great deal of time from my working hours. Thanks.
    Regards,
    Paradise Valley Homes

  15. Drenagem Linfatica Says:

    i Agree in I think that is the underlying point.

  16. project software Says:

    All i can say about this website is awesome thanks man i believe you rich your goal thanks for this site, thanks for sharing.

  17. charters greece Says:

    It is a simple and clean code. It work perfect! Thanks!

  18. Cool Homewares Says:

    There are many people searching about that now they will find enough sources by your tips. I have really enjoyed reading all of its posts.

  19. Ben Says:

    A lot of resources for a fix for this because this bug is too annoying and it bugs me. Moreover it is taking away a great deal of time from my working hours. Thanks.
    Regards,
    Carol

  20. bestowadeel Says:

    This is really a nice blog. I have read many blogs but this one really satisfies your real needs. I just love to bookmark this page. Really was not expecting that when I started off studying.Security in Slough | Security in St Albans | Security Companies London | Security in Crawley | Security in St Davids | Car breakers in Birmingham

  21. Tech News Says:

    . I have certain down payments this month so I can’t afford to lose any more of my working hours.

  22. sa335 Says:

    The article has really peaks my interest. I am going to bookmark your web site and hold checking for brand new information.

  23. sailing Says:

    I have been having this bug in my Rail 2.x application. I have searched a lot of resources for a fix for this because this bug is too annoying and it bugs me. Moreover it is taking away a great deal of time from my working hours.

Leave a Reply