Refer to the library name instead of the constant

When we are loading a component and we want to know its version, we are
actually not speaking about the constant but the library itself.

[ci skip]

[Godfrey Chan & Xavier Noria]
This commit is contained in:
Robin Dupret 2014-08-30 11:58:23 +02:00
parent 4c917dae9a
commit 84c0f73c8d
7 changed files with 7 additions and 7 deletions

View File

@ -1,5 +1,5 @@
module ActionMailer
# Returns the version of the currently loaded ActionMailer as a <tt>Gem::Version</tt>
# Returns the version of the currently loaded Action Mailer as a <tt>Gem::Version</tt>
def self.gem_version
Gem::Version.new VERSION::STRING
end

View File

@ -1,5 +1,5 @@
module ActionPack
# Returns the version of the currently loaded ActionPack as a <tt>Gem::Version</tt>
# Returns the version of the currently loaded Action Pack as a <tt>Gem::Version</tt>
def self.gem_version
Gem::Version.new VERSION::STRING
end

View File

@ -1,5 +1,5 @@
module ActionView
# Returns the version of the currently loaded ActionView as a <tt>Gem::Version</tt>
# Returns the version of the currently loaded Action View as a <tt>Gem::Version</tt>
def self.gem_version
Gem::Version.new VERSION::STRING
end

View File

@ -1,5 +1,5 @@
module ActiveJob
# Returns the version of the currently loaded ActiveJob as a <tt>Gem::Version</tt>
# Returns the version of the currently loaded Active Job as a <tt>Gem::Version</tt>
def self.gem_version
Gem::Version.new VERSION::STRING
end

View File

@ -1,5 +1,5 @@
module ActiveModel
# Returns the version of the currently loaded ActiveModel as a <tt>Gem::Version</tt>
# 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

View File

@ -1,5 +1,5 @@
module ActiveRecord
# Returns the version of the currently loaded ActiveRecord as a <tt>Gem::Version</tt>
# Returns the version of the currently loaded Active Record as a <tt>Gem::Version</tt>
def self.gem_version
Gem::Version.new VERSION::STRING
end

View File

@ -1,5 +1,5 @@
module ActiveSupport
# Returns the version of the currently loaded ActiveSupport as a <tt>Gem::Version</tt>
# Returns the version of the currently loaded Active Support as a <tt>Gem::Version</tt>
def self.gem_version
Gem::Version.new VERSION::STRING
end