diff options
author | Ryuta Kamizono <kamipo@gmail.com> | 2017-12-15 16:39:27 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-12-15 16:39:27 +0900 |
commit | 640242654c999018a63d5e028b7b6dbe5b49c4c4 (patch) | |
tree | f0ba7f1008137c60cd36c07647c32e5dabd6e7ed | |
parent | 6a902d43c76a8b5bc2ddd00b7c8af38f9fb82bdb (diff) | |
parent | 6d65c0f07762ce606697bb2e9fe225c57424d1cb (diff) | |
download | rails-640242654c999018a63d5e028b7b6dbe5b49c4c4.tar.gz rails-640242654c999018a63d5e028b7b6dbe5b49c4c4.tar.bz2 rails-640242654c999018a63d5e028b7b6dbe5b49c4c4.zip |
Merge pull request #31471 from yhirano55/inherit_active_record_base
[ci skip] Inherit ActiveRecord::Base in example codes
-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 |