aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRafael Mendonça França <rafaelmfranca@gmail.com>2015-05-05 11:56:56 -0300
committerRafael Mendonça França <rafaelmfranca@gmail.com>2015-05-05 11:56:56 -0300
commit67089c52948fc0d851cea6c89d1d98e49150e236 (patch)
treef857ab8b9554ead95b6dbffc4412d9f91bff9262
parent918aa6e87813c5c7687e5d460c5cd62ba3919536 (diff)
parent72c5b517d49fcf11de180d1e1ff87bdd2eb0df59 (diff)
downloadrails-67089c52948fc0d851cea6c89d1d98e49150e236.tar.gz
rails-67089c52948fc0d851cea6c89d1d98e49150e236.tar.bz2
rails-67089c52948fc0d851cea6c89d1d98e49150e236.zip
Merge pull request #20030 from ankit8898/grammar_corr
Tiny grammar correction in documentation [ci skip]
-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: