aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoramitkumarsuroliya <amitkumarsuroliya@gmail.com>2016-01-19 11:09:34 +0530
committeramitkumarsuroliya <amitkumarsuroliya@gmail.com>2016-01-19 11:09:52 +0530
commitb4803e6ea7f85d8fe570b56856d0e460cceda85f (patch)
treec7163972d6f3b20ad730681a31ace4865fbf9841
parentbe3d4c6ef65b3cda3242c19fd756ef3869f2deaf (diff)
downloadrails-b4803e6ea7f85d8fe570b56856d0e460cceda85f.tar.gz
rails-b4803e6ea7f85d8fe570b56856d0e460cceda85f.tar.bz2
rails-b4803e6ea7f85d8fe570b56856d0e460cceda85f.zip
`ApplicationRecord` instead of `ActiveRecord::Base` in Association Guides [ci skip]
-rw-r--r--guides/source/association_basics.md4
1 files changed, 2 insertions, 2 deletions
diff --git a/guides/source/association_basics.md b/guides/source/association_basics.md
index 94cee94e0f..2bfec4c68e 100644
--- a/guides/source/association_basics.md
+++ b/guides/source/association_basics.md
@@ -19,10 +19,10 @@ Why Associations?
In Rails, an _association_ is a connection between two Active Record models. Why do we need associations between models? Because they make common operations simpler and easier in your code. For example, consider a simple Rails application that includes a model for customers and a model for orders. Each customer can have many orders. Without associations, the model declarations would look like this:
```ruby
-class Author < ActiveRecord::Base
+class Author < ApplicationRecord
end
-class Book < ActiveRecord::Base
+class Book < ApplicationRecord
end
```