Permalink
Browse files

Merge pull request #13143 from joker1007/fix_active_record_callbacks_…

…document_bug

Fix ActiveRecord::Callbacks sample code [ci skip]
  • Loading branch information...
2 parents 5f1e394 + edd93a5 commit a04b5ee4163e5ff6b8afab37c0b5dc6fd06a676b @rafaelfranca rafaelfranca committed Dec 3, 2013
Showing with 2 additions and 2 deletions.
  1. +2 −2 activerecord/lib/active_record/callbacks.rb
@@ -128,7 +128,7 @@ module ActiveRecord
# record.credit_card_number = decrypt(record.credit_card_number)
# end
#
- # alias_method :after_find, :after_save
+ # alias_method :after_initialize, :after_save
#
# private
# def encrypt(value)
@@ -163,7 +163,7 @@ module ActiveRecord
# record.send("#{@attribute}=", decrypt(record.send("#{@attribute}")))
# end
#
- # alias_method :after_find, :after_save
+ # alias_method :after_initialize, :after_save
#
# private
# def encrypt(value)

0 comments on commit a04b5ee

Please sign in to comment.