How do I avoid the circular argument reference warning in activesupport

后端 未结 9 996
既然无缘
既然无缘 2020-12-17 07:56

How do I avoid the circular argument reference warning in activesupport. Happens on ruby 2.2.0

/home/ec2-user/apps/foo_prod/shared/bundle/ruby/2.2.0/gems/act         


        
9条回答
  •  醉话见心
    2020-12-17 08:41

    This is an issue of Active Support and has been fixed with these two commits:

    • https://github.com/rails/rails/commit/8fd52705eda6a2cd7e9a8a5bc723fa094e359eb7
    • https://github.com/rails/rails/commit/3a30b12c774dfaa72acfe520e823374131631ea9

    Unfortunately, these commits have been never included into the 3.2 releases, because the current last release (v3.2.21) was out on 18 Nov 2014 and after that these commits were merged.

    If you don't want to see this warning message definitely, you should change your Gemfile like this:

    # gem 'rails', '3.2.21'
    gem 'rails', git: 'https://github.com/rails/rails.git', branch: '3-2-stable'
    

    Otherwise, you should downgrade ruby to 2.1 or wait the release of v3.2.22, which won't come until a grave security hole is found.

    After all, there is no easy way to avoid this issue. Changing Gemfile for such a trivial annoyance may be an overreaction in my view. It will delay your deployment process quite a lot.

提交回复
热议问题