Merge pull request #13143 from joker1007/fix_active_record_callbacks_document_bug
Fix ActiveRecord::Callbacks sample code [ci skip]
This commit is contained in:
commit
a04b5ee416
@ -128,7 +128,7 @@ module ActiveRecord
|
|||||||
# record.credit_card_number = decrypt(record.credit_card_number)
|
# record.credit_card_number = decrypt(record.credit_card_number)
|
||||||
# end
|
# end
|
||||||
#
|
#
|
||||||
# alias_method :after_find, :after_save
|
# alias_method :after_initialize, :after_save
|
||||||
#
|
#
|
||||||
# private
|
# private
|
||||||
# def encrypt(value)
|
# def encrypt(value)
|
||||||
@ -163,7 +163,7 @@ module ActiveRecord
|
|||||||
# record.send("#{@attribute}=", decrypt(record.send("#{@attribute}")))
|
# record.send("#{@attribute}=", decrypt(record.send("#{@attribute}")))
|
||||||
# end
|
# end
|
||||||
#
|
#
|
||||||
# alias_method :after_find, :after_save
|
# alias_method :after_initialize, :after_save
|
||||||
#
|
#
|
||||||
# private
|
# private
|
||||||
# def encrypt(value)
|
# def encrypt(value)
|
||||||
|
Loading…
Reference in New Issue
Block a user