Merge pull request #31471 from yhirano55/inherit_active_record_base
[ci skip] Inherit ActiveRecord::Base in example codes
This commit is contained in:
commit
640242654c
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user