Skip to content

Commit

Permalink
Replaced Gem::Version with ActiveSupport::VERSION::MAJOR/MINOR
Browse files Browse the repository at this point in the history
  • Loading branch information
John McGrath committed Jan 21, 2012
1 parent 9e8d7d6 commit 5ddcb87
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion 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'
Expand Down

0 comments on commit 5ddcb87

Please sign in to comment.