aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAkshay Khole <akshay@reversehack.in>2013-05-04 15:14:58 +0530
committerAkshay Khole <akshay@reversehack.in>2013-05-04 15:14:58 +0530
commit7ce80352527d9e54f7d144a142ae3bef19503a8f (patch)
tree26a3c071442e85d7f506a82c22966da01de695af
parent092b952d472c450e1207dba2b63af0f765f78b8f (diff)
downloadrails-7ce80352527d9e54f7d144a142ae3bef19503a8f.tar.gz
rails-7ce80352527d9e54f7d144a142ae3bef19503a8f.tar.bz2
rails-7ce80352527d9e54f7d144a142ae3bef19503a8f.zip
comments in the callbacks description are in present tense
-rw-r--r--guides/source/active_model_basics.md6
1 files changed, 3 insertions, 3 deletions
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
```