# Specifying Active Support Version in environment.rb

**URL:** <https://www.ruby-forum.com/t/specifying-active-support-version-in-environment-rb/156767>\
**Category:** Rails\
**Created:** [January 2, 2009, 6:12pm UTC](https://www.ruby-forum.com/t/specifying-active-support-version-in-environment-rb/156767 "2009-01-02T18:12:03Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![john\_old](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/9f8e36/32.png) [@john\_old](https://www.ruby-forum.com/u/john_old)\
**Post date:** [January 2, 2009, 6:12pm UTC](https://www.ruby-forum.com/t/specifying-active-support-version-in-environment-rb/156767/1 "2009-01-02T18:12:03Z")

</div>

Hello.

I am getting this error…

C:/dev/ccx\_aucxtion\_ccx/config/boot.rb:20:Warning:  
Gem::SourceIndex#search support for String patterns is deprecated  
c:/ruby/lib/ruby/site\_ruby/1.8/rubygems.rb:149:in `activate’: can’t  
activate activesupport (= 1.4.4, runtime), already activated active  
support-2.2.2 (Gem::Exception)

Is there a way to specify the Active Support version in  
environment.rb? I see there is a way to specify the Rails version…

RAILS\_GEM\_VERSION = ‘1.2.6’ unless defined? RAILS\_GEM\_VERSION

Please let me know.  
Thanks,  
John

---

<div class="post-metadata">

**Author:** ![john\_old](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/9f8e36/32.png) [@john\_old](https://www.ruby-forum.com/u/john_old)\
**Post date:** [January 2, 2009, 6:14pm UTC](https://www.ruby-forum.com/t/specifying-active-support-version-in-environment-rb/156767/2 "2009-01-02T18:14:27Z")

</div>

On 2 Jan 2009, at 16:50, John wrote:

> support-2.2.2 (Gem::Exception)
> 
> Is there a way to specify the Active Support version in  
> environment.rb? I see there is a way to specify the Rails version…

A particular version of rails is tied to a particular version of  
activesupport. The error message you’ve got means that something  
required a newer version of activesupport before rails loaded its  
version.

Fred
