From 62c03816e8b034ad0265548fe599667af6de5e87 Mon Sep 17 00:00:00 2001 From: mhutchin Date: Sat, 8 Oct 2011 03:59:13 -0700 Subject: copy editing "updated the ajax_on_rails.textile for rails3" --- railties/guides/source/active_record_validations_callbacks.textile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'railties/guides') diff --git a/railties/guides/source/active_record_validations_callbacks.textile b/railties/guides/source/active_record_validations_callbacks.textile index 2f78f1d0c8..665e7f9ccc 100644 --- a/railties/guides/source/active_record_validations_callbacks.textile +++ b/railties/guides/source/active_record_validations_callbacks.textile @@ -1162,7 +1162,7 @@ class PictureFile < ActiveRecord::Base end -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: class PictureFileCallbacks -- cgit v1.2.3