diff --git a/actioncable/lib/action_cable/gem_version.rb b/actioncable/lib/action_cable/gem_version.rb index f62556b324..56406bf3dd 100644 --- a/actioncable/lib/action_cable/gem_version.rb +++ b/actioncable/lib/action_cable/gem_version.rb @@ -1,7 +1,7 @@ # frozen_string_literal: true module ActionCable - # Returns the version of the currently loaded Action Cable as a Gem::Version. + # Returns the currently loaded version of Action Cable as a Gem::Version. def self.gem_version Gem::Version.new VERSION::STRING end diff --git a/actioncable/lib/action_cable/version.rb b/actioncable/lib/action_cable/version.rb index 86115c6065..00d5f6d2ee 100644 --- a/actioncable/lib/action_cable/version.rb +++ b/actioncable/lib/action_cable/version.rb @@ -3,7 +3,7 @@ require_relative "gem_version" module ActionCable - # Returns the version of the currently loaded Action Cable as a Gem::Version + # Returns the currently loaded version of Action Cable as a Gem::Version. def self.version gem_version end diff --git a/actionmailbox/lib/action_mailbox/gem_version.rb b/actionmailbox/lib/action_mailbox/gem_version.rb index 648d75353f..6ab08fe53c 100644 --- a/actionmailbox/lib/action_mailbox/gem_version.rb +++ b/actionmailbox/lib/action_mailbox/gem_version.rb @@ -1,7 +1,7 @@ # frozen_string_literal: true module ActionMailbox - # Returns the currently-loaded version of Action Mailbox as a Gem::Version. + # Returns the currently loaded version of Action Mailbox as a Gem::Version. def self.gem_version Gem::Version.new VERSION::STRING end diff --git a/actionmailbox/lib/action_mailbox/version.rb b/actionmailbox/lib/action_mailbox/version.rb index e65d27f5dd..00f7cf3770 100644 --- a/actionmailbox/lib/action_mailbox/version.rb +++ b/actionmailbox/lib/action_mailbox/version.rb @@ -3,7 +3,7 @@ require_relative "gem_version" module ActionMailbox - # Returns the currently-loaded version of Action Mailbox as a Gem::Version. + # Returns the currently loaded version of Action Mailbox as a Gem::Version. def self.version gem_version end diff --git a/actionmailer/lib/action_mailer/gem_version.rb b/actionmailer/lib/action_mailer/gem_version.rb index 53f7a39f5c..9cb029e283 100644 --- a/actionmailer/lib/action_mailer/gem_version.rb +++ b/actionmailer/lib/action_mailer/gem_version.rb @@ -1,7 +1,7 @@ # frozen_string_literal: true module ActionMailer - # Returns the version of the currently loaded Action Mailer as a Gem::Version. + # Returns the currently loaded version of Action Mailer as a Gem::Version. def self.gem_version Gem::Version.new VERSION::STRING end diff --git a/actionmailer/lib/action_mailer/version.rb b/actionmailer/lib/action_mailer/version.rb index 4549d6eb57..18a73c2b41 100644 --- a/actionmailer/lib/action_mailer/version.rb +++ b/actionmailer/lib/action_mailer/version.rb @@ -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 # Gem::Version. def self.version gem_version diff --git a/actionpack/lib/action_pack/gem_version.rb b/actionpack/lib/action_pack/gem_version.rb index 22f91a643f..722c4e2b27 100644 --- a/actionpack/lib/action_pack/gem_version.rb +++ b/actionpack/lib/action_pack/gem_version.rb @@ -1,7 +1,7 @@ # frozen_string_literal: true module ActionPack - # Returns the version of the currently loaded Action Pack as a Gem::Version + # Returns the currently loaded version of Action Pack as a Gem::Version. def self.gem_version Gem::Version.new VERSION::STRING end diff --git a/actionpack/lib/action_pack/version.rb b/actionpack/lib/action_pack/version.rb index fd039fe140..21bd46423f 100644 --- a/actionpack/lib/action_pack/version.rb +++ b/actionpack/lib/action_pack/version.rb @@ -3,7 +3,7 @@ require_relative "gem_version" module ActionPack - # Returns the version of the currently loaded ActionPack as a Gem::Version + # Returns the currently loaded version of Action Pack as a Gem::Version. def self.version gem_version end diff --git a/actiontext/lib/action_text/gem_version.rb b/actiontext/lib/action_text/gem_version.rb index 856252f26a..ba6a41333c 100644 --- a/actiontext/lib/action_text/gem_version.rb +++ b/actiontext/lib/action_text/gem_version.rb @@ -1,7 +1,7 @@ # frozen_string_literal: true module ActionText - # Returns the currently-loaded version of Action Text as a Gem::Version. + # Returns the currently loaded version of Action Text as a Gem::Version. def self.gem_version Gem::Version.new VERSION::STRING end diff --git a/actiontext/lib/action_text/version.rb b/actiontext/lib/action_text/version.rb index ed72859fa4..834951794f 100644 --- a/actiontext/lib/action_text/version.rb +++ b/actiontext/lib/action_text/version.rb @@ -3,7 +3,7 @@ require_relative "gem_version" module ActionText - # Returns the currently-loaded version of Action Text as a Gem::Version. + # Returns the currently loaded version of Action Text as a Gem::Version. def self.version gem_version end diff --git a/actionview/lib/action_view/gem_version.rb b/actionview/lib/action_view/gem_version.rb index 511826b951..eb20082ffd 100644 --- a/actionview/lib/action_view/gem_version.rb +++ b/actionview/lib/action_view/gem_version.rb @@ -1,7 +1,7 @@ # frozen_string_literal: true module ActionView - # Returns the version of the currently loaded Action View as a Gem::Version + # Returns the currently loaded version of Action View as a Gem::Version. def self.gem_version Gem::Version.new VERSION::STRING end diff --git a/actionview/lib/action_view/version.rb b/actionview/lib/action_view/version.rb index be53797a14..a5a4a1ee3b 100644 --- a/actionview/lib/action_view/version.rb +++ b/actionview/lib/action_view/version.rb @@ -3,7 +3,7 @@ require_relative "gem_version" module ActionView - # Returns the version of the currently loaded ActionView as a Gem::Version + # Returns the currently loaded version of Action View as a Gem::Version. def self.version gem_version end diff --git a/activejob/lib/active_job/gem_version.rb b/activejob/lib/active_job/gem_version.rb index 4636e2390d..b79def8d89 100644 --- a/activejob/lib/active_job/gem_version.rb +++ b/activejob/lib/active_job/gem_version.rb @@ -1,7 +1,7 @@ # frozen_string_literal: true module ActiveJob - # Returns the version of the currently loaded Active Job as a Gem::Version + # Returns the currently loaded version of Active Job as a Gem::Version. def self.gem_version Gem::Version.new VERSION::STRING end diff --git a/activejob/lib/active_job/version.rb b/activejob/lib/active_job/version.rb index eae7da4d05..f52182dc7b 100644 --- a/activejob/lib/active_job/version.rb +++ b/activejob/lib/active_job/version.rb @@ -3,7 +3,7 @@ require_relative "gem_version" module ActiveJob - # Returns the version of the currently loaded Active Job as a Gem::Version + # Returns the currently loaded version of Active Job as a Gem::Version. def self.version gem_version end diff --git a/activemodel/lib/active_model/gem_version.rb b/activemodel/lib/active_model/gem_version.rb index 99578aca2c..92eb084acc 100644 --- a/activemodel/lib/active_model/gem_version.rb +++ b/activemodel/lib/active_model/gem_version.rb @@ -1,7 +1,7 @@ # frozen_string_literal: true module ActiveModel - # Returns the version of the currently loaded \Active \Model as a Gem::Version + # Returns the currently loaded version of \Active \Model as a Gem::Version. def self.gem_version Gem::Version.new VERSION::STRING end diff --git a/activemodel/lib/active_model/version.rb b/activemodel/lib/active_model/version.rb index dd817f5639..39fd40d694 100644 --- a/activemodel/lib/active_model/version.rb +++ b/activemodel/lib/active_model/version.rb @@ -3,7 +3,7 @@ require_relative "gem_version" module ActiveModel - # Returns the version of the currently loaded \Active \Model as a Gem::Version + # Returns the currently loaded version of \Active \Model as a Gem::Version. def self.version gem_version end diff --git a/activerecord/lib/active_record/gem_version.rb b/activerecord/lib/active_record/gem_version.rb index e2dd685ec2..c8a47927ef 100644 --- a/activerecord/lib/active_record/gem_version.rb +++ b/activerecord/lib/active_record/gem_version.rb @@ -1,7 +1,7 @@ # frozen_string_literal: true module ActiveRecord - # Returns the version of the currently loaded Active Record as a Gem::Version + # Returns the currently loaded version of Active Record as a Gem::Version. def self.gem_version Gem::Version.new VERSION::STRING end diff --git a/activerecord/lib/active_record/version.rb b/activerecord/lib/active_record/version.rb index 6b0d82d8fc..2997b13cf9 100644 --- a/activerecord/lib/active_record/version.rb +++ b/activerecord/lib/active_record/version.rb @@ -3,7 +3,7 @@ require_relative "gem_version" module ActiveRecord - # Returns the version of the currently loaded ActiveRecord as a Gem::Version + # Returns the currently loaded version of Active Record as a Gem::Version. def self.version gem_version end diff --git a/activestorage/lib/active_storage/gem_version.rb b/activestorage/lib/active_storage/gem_version.rb index 34c703d15f..db517ac873 100644 --- a/activestorage/lib/active_storage/gem_version.rb +++ b/activestorage/lib/active_storage/gem_version.rb @@ -1,7 +1,7 @@ # frozen_string_literal: true module ActiveStorage - # Returns the version of the currently loaded Active Storage as a Gem::Version. + # Returns the currently loaded version of Active Storage as a Gem::Version. def self.gem_version Gem::Version.new VERSION::STRING end diff --git a/activestorage/lib/active_storage/version.rb b/activestorage/lib/active_storage/version.rb index 4b6631832b..4b16ce9ec9 100644 --- a/activestorage/lib/active_storage/version.rb +++ b/activestorage/lib/active_storage/version.rb @@ -3,7 +3,7 @@ require_relative "gem_version" module ActiveStorage - # Returns the version of the currently loaded ActiveStorage as a Gem::Version + # Returns the currently loaded version of Active Storage as a Gem::Version. def self.version gem_version end diff --git a/activesupport/lib/active_support/gem_version.rb b/activesupport/lib/active_support/gem_version.rb index 0a569922d9..80788acacd 100644 --- a/activesupport/lib/active_support/gem_version.rb +++ b/activesupport/lib/active_support/gem_version.rb @@ -1,7 +1,7 @@ # frozen_string_literal: true module ActiveSupport - # Returns the version of the currently loaded Active Support as a Gem::Version. + # Returns the currently loaded version of Active Support as a Gem::Version. def self.gem_version Gem::Version.new VERSION::STRING end diff --git a/activesupport/lib/active_support/version.rb b/activesupport/lib/active_support/version.rb index 928838c837..c3a07289de 100644 --- a/activesupport/lib/active_support/version.rb +++ b/activesupport/lib/active_support/version.rb @@ -3,7 +3,7 @@ require_relative "gem_version" module ActiveSupport - # Returns the version of the currently loaded ActiveSupport as a Gem::Version + # Returns the currently loaded version of Active Support as a Gem::Version. def self.version gem_version end diff --git a/guides/source/2_3_release_notes.md b/guides/source/2_3_release_notes.md index 76b202d0f4..1a35233d30 100644 --- a/guides/source/2_3_release_notes.md +++ b/guides/source/2_3_release_notes.md @@ -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/) diff --git a/railties/lib/rails/gem_version.rb b/railties/lib/rails/gem_version.rb index c29c93ec02..06d6945f02 100644 --- a/railties/lib/rails/gem_version.rb +++ b/railties/lib/rails/gem_version.rb @@ -1,7 +1,7 @@ # frozen_string_literal: true module Rails - # Returns the version of the currently loaded Rails as a Gem::Version + # Returns the currently loaded version of Rails as a Gem::Version. def self.gem_version Gem::Version.new VERSION::STRING end diff --git a/railties/lib/rails/version.rb b/railties/lib/rails/version.rb index ba6763a572..e38eebaadb 100644 --- a/railties/lib/rails/version.rb +++ b/railties/lib/rails/version.rb @@ -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 diff --git a/version.rb b/version.rb index c29c93ec02..06d6945f02 100644 --- a/version.rb +++ b/version.rb @@ -1,7 +1,7 @@ # frozen_string_literal: true module Rails - # Returns the version of the currently loaded Rails as a Gem::Version + # Returns the currently loaded version of Rails as a Gem::Version. def self.gem_version Gem::Version.new VERSION::STRING end