1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

copy editing

"updated the ajax_on_rails.textile for rails3"
This commit is contained in:
mhutchin 2011-10-08 03:59:13 -07:00 committed by Karunakar (Ruby)
parent b2deeabffb
commit 62c03816e8

View file

@ -1162,7 +1162,7 @@ class PictureFile < ActiveRecord::Base
end end
</ruby> </ruby>
Note that we needed to instantiate a new +PictureFileCallbacks+ object, since we declared our callback as an instance method. This is particularly useful if the callbacks make use of the state of instantiated object. Often, however, it will make more sense to declare the callbacks as class methods: Note that we needed to instantiate a new +PictureFileCallbacks+ object, since we declared our callback as an instance method. This is particularly useful if the callbacks make use of the state of the instantiated object. Often, however, it will make more sense to declare the callbacks as class methods:
<ruby> <ruby>
class PictureFileCallbacks class PictureFileCallbacks