Sha256: 4e65a507106b09c67f3a69b0f9959311ba9b04c3cc7eebad560378ffb135c70e

Contents?: true

Size: 304 Bytes

Versions: 2

Compression:

Stored size: 304 Bytes

Contents

module Rails
  # Returns the version of the currently loaded Rails as a <tt>Gem::Version</tt>
  def self.gem_version
    Gem::Version.new VERSION::STRING
  end

  module VERSION
    MAJOR = 5
    MINOR = 0
    TINY  = 0
    PRE   = nil

    STRING = [MAJOR, MINOR, TINY, PRE].compact.join(".")
  end
end

Version data entries

2 entries across 2 versions & 2 rubygems

Version Path
abaci-0.3.0 vendor/bundle/gems/railties-5.0.0/lib/rails/gem_version.rb
railties-5.0.0 lib/rails/gem_version.rb