aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/lib/active_support/version.rb
diff options
context:
space:
mode:
Diffstat (limited to 'activesupport/lib/active_support/version.rb')
-rw-r--r--activesupport/lib/active_support/version.rb12
1 files changed, 5 insertions, 7 deletions
diff --git a/activesupport/lib/active_support/version.rb b/activesupport/lib/active_support/version.rb
index 8a8f8f946d..fe03984546 100644
--- a/activesupport/lib/active_support/version.rb
+++ b/activesupport/lib/active_support/version.rb
@@ -1,10 +1,8 @@
-module ActiveSupport
- module VERSION #:nodoc:
- MAJOR = 4
- MINOR = 0
- TINY = 0
- PRE = "beta"
+require_relative 'gem_version'
- STRING = [MAJOR, MINOR, TINY, PRE].compact.join('.')
+module ActiveSupport
+ # Returns the version of the currently loaded ActiveSupport as a <tt>Gem::Version</tt>
+ def self.version
+ gem_version
end
end