mirror of https://github.com/rails/rails
Merge pull request #44693 from ghousemohamed/fix-docs-related-gem-versions
Fix `#version` method docs and some typos [ci-skip]
This commit is contained in:
commit
5c1bd20f0d
|
@ -1,7 +1,7 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
module ActionCable
|
||||
# Returns the version of the currently loaded Action Cable as a <tt>Gem::Version</tt>.
|
||||
# Returns the currently loaded version of Action Cable as a <tt>Gem::Version</tt>.
|
||||
def self.gem_version
|
||||
Gem::Version.new VERSION::STRING
|
||||
end
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
require_relative "gem_version"
|
||||
|
||||
module ActionCable
|
||||
# Returns the version of the currently loaded Action Cable as a <tt>Gem::Version</tt>
|
||||
# Returns the currently loaded version of Action Cable as a <tt>Gem::Version</tt>.
|
||||
def self.version
|
||||
gem_version
|
||||
end
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
module ActionMailbox
|
||||
# Returns the currently-loaded version of Action Mailbox as a <tt>Gem::Version</tt>.
|
||||
# Returns the currently loaded version of Action Mailbox as a <tt>Gem::Version</tt>.
|
||||
def self.gem_version
|
||||
Gem::Version.new VERSION::STRING
|
||||
end
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
require_relative "gem_version"
|
||||
|
||||
module ActionMailbox
|
||||
# Returns the currently-loaded version of Action Mailbox as a <tt>Gem::Version</tt>.
|
||||
# Returns the currently loaded version of Action Mailbox as a <tt>Gem::Version</tt>.
|
||||
def self.version
|
||||
gem_version
|
||||
end
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
module ActionMailer
|
||||
# Returns the version of the currently loaded Action Mailer as a <tt>Gem::Version</tt>.
|
||||
# Returns the currently loaded version of Action Mailer as a <tt>Gem::Version</tt>.
|
||||
def self.gem_version
|
||||
Gem::Version.new VERSION::STRING
|
||||
end
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
require_relative "gem_version"
|
||||
|
||||
module ActionMailer
|
||||
# Returns the version of the currently loaded Action Mailer as a
|
||||
# Returns the currently loaded version of Action Mailer as a
|
||||
# <tt>Gem::Version</tt>.
|
||||
def self.version
|
||||
gem_version
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
module ActionPack
|
||||
# Returns the version of the currently loaded Action Pack as a <tt>Gem::Version</tt>
|
||||
# Returns the currently loaded version of Action Pack as a <tt>Gem::Version</tt>.
|
||||
def self.gem_version
|
||||
Gem::Version.new VERSION::STRING
|
||||
end
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
require_relative "gem_version"
|
||||
|
||||
module ActionPack
|
||||
# Returns the version of the currently loaded ActionPack as a <tt>Gem::Version</tt>
|
||||
# Returns the currently loaded version of Action Pack as a <tt>Gem::Version</tt>.
|
||||
def self.version
|
||||
gem_version
|
||||
end
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
module ActionText
|
||||
# Returns the currently-loaded version of Action Text as a <tt>Gem::Version</tt>.
|
||||
# Returns the currently loaded version of Action Text as a <tt>Gem::Version</tt>.
|
||||
def self.gem_version
|
||||
Gem::Version.new VERSION::STRING
|
||||
end
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
require_relative "gem_version"
|
||||
|
||||
module ActionText
|
||||
# Returns the currently-loaded version of Action Text as a <tt>Gem::Version</tt>.
|
||||
# Returns the currently loaded version of Action Text as a <tt>Gem::Version</tt>.
|
||||
def self.version
|
||||
gem_version
|
||||
end
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
module ActionView
|
||||
# Returns the version of the currently loaded Action View as a <tt>Gem::Version</tt>
|
||||
# Returns the currently loaded version of Action View as a <tt>Gem::Version</tt>.
|
||||
def self.gem_version
|
||||
Gem::Version.new VERSION::STRING
|
||||
end
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
require_relative "gem_version"
|
||||
|
||||
module ActionView
|
||||
# Returns the version of the currently loaded ActionView as a <tt>Gem::Version</tt>
|
||||
# Returns the currently loaded version of Action View as a <tt>Gem::Version</tt>.
|
||||
def self.version
|
||||
gem_version
|
||||
end
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
module ActiveJob
|
||||
# Returns the version of the currently loaded Active Job as a <tt>Gem::Version</tt>
|
||||
# Returns the currently loaded version of Active Job as a <tt>Gem::Version</tt>.
|
||||
def self.gem_version
|
||||
Gem::Version.new VERSION::STRING
|
||||
end
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
require_relative "gem_version"
|
||||
|
||||
module ActiveJob
|
||||
# Returns the version of the currently loaded Active Job as a <tt>Gem::Version</tt>
|
||||
# Returns the currently loaded version of Active Job as a <tt>Gem::Version</tt>.
|
||||
def self.version
|
||||
gem_version
|
||||
end
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
module ActiveModel
|
||||
# Returns the version of the currently loaded \Active \Model as a <tt>Gem::Version</tt>
|
||||
# Returns the currently loaded version of \Active \Model as a <tt>Gem::Version</tt>.
|
||||
def self.gem_version
|
||||
Gem::Version.new VERSION::STRING
|
||||
end
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
require_relative "gem_version"
|
||||
|
||||
module ActiveModel
|
||||
# Returns the version of the currently loaded \Active \Model as a <tt>Gem::Version</tt>
|
||||
# Returns the currently loaded version of \Active \Model as a <tt>Gem::Version</tt>.
|
||||
def self.version
|
||||
gem_version
|
||||
end
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
module ActiveRecord
|
||||
# Returns the version of the currently loaded Active Record as a <tt>Gem::Version</tt>
|
||||
# Returns the currently loaded version of Active Record as a <tt>Gem::Version</tt>.
|
||||
def self.gem_version
|
||||
Gem::Version.new VERSION::STRING
|
||||
end
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
require_relative "gem_version"
|
||||
|
||||
module ActiveRecord
|
||||
# Returns the version of the currently loaded ActiveRecord as a <tt>Gem::Version</tt>
|
||||
# Returns the currently loaded version of Active Record as a <tt>Gem::Version</tt>.
|
||||
def self.version
|
||||
gem_version
|
||||
end
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
module ActiveStorage
|
||||
# Returns the version of the currently loaded Active Storage as a <tt>Gem::Version</tt>.
|
||||
# Returns the currently loaded version of Active Storage as a <tt>Gem::Version</tt>.
|
||||
def self.gem_version
|
||||
Gem::Version.new VERSION::STRING
|
||||
end
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
require_relative "gem_version"
|
||||
|
||||
module ActiveStorage
|
||||
# Returns the version of the currently loaded ActiveStorage as a <tt>Gem::Version</tt>
|
||||
# Returns the currently loaded version of Active Storage as a <tt>Gem::Version</tt>.
|
||||
def self.version
|
||||
gem_version
|
||||
end
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
module ActiveSupport
|
||||
# Returns the version of the currently loaded Active Support as a <tt>Gem::Version</tt>.
|
||||
# Returns the currently loaded version of Active Support as a <tt>Gem::Version</tt>.
|
||||
def self.gem_version
|
||||
Gem::Version.new VERSION::STRING
|
||||
end
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
require_relative "gem_version"
|
||||
|
||||
module ActiveSupport
|
||||
# Returns the version of the currently loaded ActiveSupport as a <tt>Gem::Version</tt>
|
||||
# Returns the currently loaded version of Active Support as a <tt>Gem::Version</tt>.
|
||||
def self.version
|
||||
gem_version
|
||||
end
|
||||
|
|
|
@ -266,7 +266,7 @@ end
|
|||
|
||||
### More Efficient Routing
|
||||
|
||||
There are a couple of significant routing changes in Rails 2.3. The `formatted_` route helpers are gone, in favor just passing in `:format` as an option. This cuts down the route generation process by 50% for any resource - and can save a substantial amount of memory (up to 100MB on large applications). If your code uses the `formatted_` helpers, it will still work for the time being - but that behavior is deprecated and your application will be more efficient if you rewrite those routes using the new standard. Another big change is that Rails now supports multiple routing files, not just `routes.rb`. You can use `RouteSet#add_configuration_file` to bring in more routes at any time - without clearing the currently-loaded routes. While this change is most useful for Engines, you can use it in any application that needs to load routes in batches.
|
||||
There are a couple of significant routing changes in Rails 2.3. The `formatted_` route helpers are gone, in favor just passing in `:format` as an option. This cuts down the route generation process by 50% for any resource - and can save a substantial amount of memory (up to 100MB on large applications). If your code uses the `formatted_` helpers, it will still work for the time being - but that behavior is deprecated and your application will be more efficient if you rewrite those routes using the new standard. Another big change is that Rails now supports multiple routing files, not just `routes.rb`. You can use `RouteSet#add_configuration_file` to bring in more routes at any time - without clearing the currently loaded routes. While this change is most useful for Engines, you can use it in any application that needs to load routes in batches.
|
||||
|
||||
* Lead Contributors: [Aaron Batalion](http://blog.hungrymachine.com/)
|
||||
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
module Rails
|
||||
# Returns the version of the currently loaded Rails as a <tt>Gem::Version</tt>
|
||||
# Returns the currently loaded version of Rails as a <tt>Gem::Version</tt>.
|
||||
def self.gem_version
|
||||
Gem::Version.new VERSION::STRING
|
||||
end
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
require_relative "gem_version"
|
||||
|
||||
module Rails
|
||||
# Returns the version of the currently loaded Rails as a string.
|
||||
# Returns the currently loaded version of Rails as a string.
|
||||
def self.version
|
||||
VERSION::STRING
|
||||
end
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
module Rails
|
||||
# Returns the version of the currently loaded Rails as a <tt>Gem::Version</tt>
|
||||
# Returns the currently loaded version of Rails as a <tt>Gem::Version</tt>.
|
||||
def self.gem_version
|
||||
Gem::Version.new VERSION::STRING
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue