From 7ce80352527d9e54f7d144a142ae3bef19503a8f Mon Sep 17 00:00:00 2001 From: Akshay Khole Date: Sat, 4 May 2013 15:14:58 +0530 Subject: comments in the callbacks description are in present tense --- guides/source/active_model_basics.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'guides/source') diff --git a/guides/source/active_model_basics.md b/guides/source/active_model_basics.md index 68ac26c681..51e332fb42 100644 --- a/guides/source/active_model_basics.md +++ b/guides/source/active_model_basics.md @@ -45,7 +45,7 @@ person.age_highest? # false ### Callbacks -Callbacks gives Active Record style callbacks. This provides the ability to define the callbacks and those will run at appropriate time. After defining a callbacks you can wrap with before, after and around custom methods. +Callbacks gives Active Record style callbacks. This provides an ability to define callbacks which run at appropriate times. After defining callbacks, you can wrap them with before, after and around custom methods. ```ruby class Person @@ -57,12 +57,12 @@ class Person def update run_callbacks(:update) do - # This will call when we are trying to call update on object. + # This method is called when update is called on an object. end end def reset_me - # This method will call when you are calling update on object as a before_update callback as defined. + # This method is called when update is called on an object as a before_update callback is defined. end end ``` -- cgit v1.2.3