From b4803e6ea7f85d8fe570b56856d0e460cceda85f Mon Sep 17 00:00:00 2001 From: amitkumarsuroliya Date: Tue, 19 Jan 2016 11:09:34 +0530 Subject: `ApplicationRecord` instead of `ActiveRecord::Base` in Association Guides [ci skip] --- guides/source/association_basics.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'guides') 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 ``` -- cgit v1.2.3