diff options
author | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2013-12-03 06:53:12 -0800 |
---|---|---|
committer | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2013-12-03 06:53:12 -0800 |
commit | a04b5ee4163e5ff6b8afab37c0b5dc6fd06a676b (patch) | |
tree | e4b766b963b1bd7fe77070aaefabd4bde1676d05 | |
parent | 5f1e39416531746c74bd88a9406a119833700165 (diff) | |
parent | edd93a53fe9e4609f68cf0057d83ecd499bbf817 (diff) | |
download | rails-a04b5ee4163e5ff6b8afab37c0b5dc6fd06a676b.tar.gz rails-a04b5ee4163e5ff6b8afab37c0b5dc6fd06a676b.tar.bz2 rails-a04b5ee4163e5ff6b8afab37c0b5dc6fd06a676b.zip |
Merge pull request #13143 from joker1007/fix_active_record_callbacks_document_bug
Fix ActiveRecord::Callbacks sample code [ci skip]
-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 128a9377c1..35f19f0bc0 100644 --- a/activerecord/lib/active_record/callbacks.rb +++ b/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) |