How do I avoid the circular argument reference warning in activesupport

Use Rails 3.2.22

gem 'rails', '3.2.22'

OR

warning fixes in version 1.2.11.8:

bundle update ruby-ole

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.