Skip to content

Protector and Inherited Resources

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.

Clone this wiki locally