aboutsummaryrefslogtreecommitdiffstats
path: root/guides/source/routing.md
diff options
context:
space:
mode:
authorGenadi Samokovarov <gsamokovarov@gmail.com>2015-12-17 11:30:30 +0100
committerGenadi Samokovarov <gsamokovarov@gmail.com>2015-12-17 11:56:35 +0100
commitc29fbd3c7aa6391e820f682a960968aab7a52d07 (patch)
tree9a7bb5f8e6345321e5ff2eba809b4f5ab9da9c1a /guides/source/routing.md
parentc4f8ce53b1f9af9585aeec9bbb0c66fc9c48ec1b (diff)
downloadrails-c29fbd3c7aa6391e820f682a960968aab7a52d07.tar.gz
rails-c29fbd3c7aa6391e820f682a960968aab7a52d07.tar.bz2
rails-c29fbd3c7aa6391e820f682a960968aab7a52d07.zip
ApplicationRecord documentation pass
This is a pass over the documentation which fills the missing gaps of `ApplicationRecord`. [ci skip]
Diffstat (limited to 'guides/source/routing.md')
-rw-r--r--guides/source/routing.md6
1 files changed, 3 insertions, 3 deletions
diff --git a/guides/source/routing.md b/guides/source/routing.md
index fc756d00b3..2b1254f7a0 100644
--- a/guides/source/routing.md
+++ b/guides/source/routing.md
@@ -252,11 +252,11 @@ TIP: _If you need to use a different controller namespace inside a `namespace` b
It's common to have resources that are logically children of other resources. For example, suppose your application includes these models:
```ruby
-class Magazine < ActiveRecord::Base
+class Magazine < ApplicationRecord
has_many :ads
end
-class Ad < ActiveRecord::Base
+class Ad < ApplicationRecord
belongs_to :magazine
end
```
@@ -1099,7 +1099,7 @@ You can override `ActiveRecord::Base#to_param` of a related model to construct
a URL:
```ruby
-class Video < ActiveRecord::Base
+class Video < ApplicationRecord
def to_param
identifier
end