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