You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Boris Staal edited this page Sep 30, 2013
·
1 revision
Protector allows you to get rid of code duplication. So why would you keep restricting things in your controllers manually? Especially when you inherit most of them from Inherited Resources.
Use Protector::InheritedResources to extend inherited actions with automatic restriction. Things get restricted by current_user by default but this can be changed.