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:
parent
b2deeabffb
commit
62c03816e8
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue