aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord
diff options
context:
space:
mode:
authorDavid Heinemeier Hansson <david@loudthinking.com>2015-12-17 12:17:04 +0100
committerDavid Heinemeier Hansson <david@loudthinking.com>2015-12-17 12:17:04 +0100
commitd3962cac2b0fe1a5dc08e3f777ec6743ecfd8acf (patch)
treefcefd21ad952aabb9f384dbe398765554c2b34b5 /activerecord
parent1bfce3f29d958a14ca1502d3d36a9a2bc1de3734 (diff)
parent008e5ab76dddfd0a7f0e8d1deff287ed76663ed3 (diff)
downloadrails-d3962cac2b0fe1a5dc08e3f777ec6743ecfd8acf.tar.gz
rails-d3962cac2b0fe1a5dc08e3f777ec6743ecfd8acf.tar.bz2
rails-d3962cac2b0fe1a5dc08e3f777ec6743ecfd8acf.zip
Merge pull request #22624 from gsamokovarov/application-record-changelog
Pass over the ApplicationRecord changelog entry
Diffstat (limited to 'activerecord')
-rw-r--r--activerecord/CHANGELOG.md15
1 files changed, 5 insertions, 10 deletions
diff --git a/activerecord/CHANGELOG.md b/activerecord/CHANGELOG.md
index f1921dded8..af761bc7b3 100644
--- a/activerecord/CHANGELOG.md
+++ b/activerecord/CHANGELOG.md
@@ -1,15 +1,10 @@
-* Introduce ApplicationRecord, an Active Record layer super type.
-
- An `ApplicationRecord` let's engines have models, isolated from the main
- application. Plugin authors can use it to distribute extensions as modules
- to be included into `ApplicationRecord`, instead of monkey patches. It can
- also serve as a place for applications to customize the default
- `ActiveRecord::Base` model behaviour.
+* ApplicationRecord is a new superclass for all app models, analogous to app
+ controllers subclassing ApplicationController instead of
+ ActionController::Base. This gives apps a single spot to configure app-wide
+ model behavior.
Newly generated applications have `app/models/application_record.rb`
- present by default. Generators are smart enough to recognize that
- newly generated models have to inherit from `ApplicationRecord` only if
- it's present.
+ present by default.
*Genadi Samokovarov*