Merge pull request #13143 from joker1007/fix_active_record_callbacks_document_bug

Fix ActiveRecord::Callbacks sample code [ci skip]
This commit is contained in:
Rafael Mendonça França 2013-12-03 06:53:12 -08:00
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)