diff options
Diffstat (limited to 'railties/lib/rails/version.rb')
-rw-r--r-- | railties/lib/rails/version.rb | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/railties/lib/rails/version.rb b/railties/lib/rails/version.rb index e4fd798d18..df351c4238 100644 --- a/railties/lib/rails/version.rb +++ b/railties/lib/rails/version.rb @@ -1,10 +1,8 @@ -module Rails - module VERSION - MAJOR = 4 - MINOR = 1 - TINY = 0 - PRE = "beta2" +require_relative 'gem_version' - STRING = [MAJOR, MINOR, TINY, PRE].compact.join(".") +module Rails + # Returns the version of the currently loaded Rails as a string. + def self.version + VERSION::STRING end end |