From 5ddcb877127ac8f9000b186d2e3ea78f080dcab4 Mon Sep 17 00:00:00 2001 From: John McGrath Date: Sat, 21 Jan 2012 10:43:40 -0800 Subject: [PATCH] Replaced Gem::Version with ActiveSupport::VERSION::MAJOR/MINOR --- lib/octopus.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/octopus.rb b/lib/octopus.rb index 17ab13fb..194775e6 100644 --- a/lib/octopus.rb +++ b/lib/octopus.rb @@ -1,4 +1,4 @@ -if Gem.loaded_specs['activesupport'].version > Gem::Version.create('3.2.0.pre') # ActiveSupport 3.2 +if ActiveSupport::VERSION::MAJOR == 3 && ActiveSupport::VERSION::MINOR > 1 # ActiveSupport 3.2 require 'active_support/core_ext/class/attribute' else # ActiveSupport 3.0, 3.1 require 'active_support/core_ext/class/inheritable_attributes'