Sha256: 13381e85fe20771b51bb98e03fb3e07d35fc5fcd1fe528c3e44bce81cc0fbfd7

Contents?: true

Size: 317 Bytes

Versions: 3

Compression:

Stored size: 317 Bytes

Contents

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

  module VERSION
    MAJOR = 4
    MINOR = 2
    TINY  = 0
    PRE   = nil

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

Version data entries

3 entries across 3 versions & 2 rubygems

Version Path
activejob-lock-0.0.2 rails/activemodel/lib/active_model/gem_version.rb
activejob-lock-0.0.1 rails/activemodel/lib/active_model/gem_version.rb
activemodel-4.2.0 lib/active_model/gem_version.rb