aboutsummaryrefslogtreecommitdiffstats
path: root/guides/source
diff options
context:
space:
mode:
authorAnkit gupta <ankit.gupta8898@gmail.com>2015-05-05 10:51:11 -0400
committerAnkit gupta <ankit.gupta8898@gmail.com>2015-05-05 10:52:53 -0400
commit72c5b517d49fcf11de180d1e1ff87bdd2eb0df59 (patch)
treef857ab8b9554ead95b6dbffc4412d9f91bff9262 /guides/source
parent918aa6e87813c5c7687e5d460c5cd62ba3919536 (diff)
downloadrails-72c5b517d49fcf11de180d1e1ff87bdd2eb0df59.tar.gz
rails-72c5b517d49fcf11de180d1e1ff87bdd2eb0df59.tar.bz2
rails-72c5b517d49fcf11de180d1e1ff87bdd2eb0df59.zip
Tiny grammar correction in documentation [ci skip]
Diffstat (limited to 'guides/source')
-rw-r--r--guides/source/action_controller_overview.md2
1 files changed, 1 insertions, 1 deletions
diff --git a/guides/source/action_controller_overview.md b/guides/source/action_controller_overview.md
index fab0e20aba..7d95d4792e 100644
--- a/guides/source/action_controller_overview.md
+++ b/guides/source/action_controller_overview.md
@@ -749,7 +749,7 @@ class ApplicationController < ActionController::Base
end
```
-Note that the filter in this case uses `send` because the `logged_in?` method is private and the filter is not run in the scope of the controller. This is not the recommended way to implement this particular filter, but in more simple cases it might be useful.
+Note that the filter in this case uses `send` because the `logged_in?` method is private and the filter does not run in the scope of the controller. This is not the recommended way to implement this particular filter, but in more simple cases it might be useful.
The second way is to use a class (actually, any object that responds to the right methods will do) to handle the filtering. This is useful in cases that are more complex and cannot be implemented in a readable and reusable way using the two other methods. As an example, you could rewrite the login filter again to use a class: