diff options
author | Yoshiyuki Hirano <yhirano@me.com> | 2017-12-15 16:32:58 +0900 |
---|---|---|
committer | Yoshiyuki Hirano <yhirano@me.com> | 2017-12-15 16:32:58 +0900 |
commit | 6d65c0f07762ce606697bb2e9fe225c57424d1cb (patch) | |
tree | d0b7ffdf40773488aefdefb52c440b4b672f5264 /activerecord/lib/active_record | |
parent | 06dbc028da444079d82b36ea4325a924982838a6 (diff) | |
download | rails-6d65c0f07762ce606697bb2e9fe225c57424d1cb.tar.gz rails-6d65c0f07762ce606697bb2e9fe225c57424d1cb.tar.bz2 rails-6d65c0f07762ce606697bb2e9fe225c57424d1cb.zip |
[ci skip] Inherit ActiveRecord::Base in example codes
Diffstat (limited to 'activerecord/lib/active_record')
-rw-r--r-- | activerecord/lib/active_record/callbacks.rb | 4 |
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 |