aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord
diff options
context:
space:
mode:
authorYoshiyuki Hirano <yhirano@me.com>2017-12-15 16:32:58 +0900
committerYoshiyuki Hirano <yhirano@me.com>2017-12-15 16:32:58 +0900
commit6d65c0f07762ce606697bb2e9fe225c57424d1cb (patch)
treed0b7ffdf40773488aefdefb52c440b4b672f5264 /activerecord
parent06dbc028da444079d82b36ea4325a924982838a6 (diff)
downloadrails-6d65c0f07762ce606697bb2e9fe225c57424d1cb.tar.gz
rails-6d65c0f07762ce606697bb2e9fe225c57424d1cb.tar.bz2
rails-6d65c0f07762ce606697bb2e9fe225c57424d1cb.zip
[ci skip] Inherit ActiveRecord::Base in example codes
Diffstat (limited to 'activerecord')
-rw-r--r--activerecord/lib/active_record/callbacks.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/activerecord/lib/active_record/callbacks.rb b/activerecord/lib/active_record/callbacks.rb
index 9ab2780760..9dbdf845bd 100644
--- a/activerecord/lib/active_record/callbacks.rb
+++ b/activerecord/lib/active_record/callbacks.rb
@@ -232,7 +232,7 @@ module ActiveRecord
#
# For example:
#
- # class Topic
+ # class Topic < ActiveRecord::Base
# has_many :children
#
# after_save :log_children
@@ -257,7 +257,7 @@ module ActiveRecord
#
# For example:
#
- # class Topic
+ # class Topic < ActiveRecord::Base
# has_many :children
#
# after_commit :log_children