my app uses before_filter for authorization in ApplicationController
which filter 'create', 'update' and so on in every controller. But
let's say i want to exclude 'create' in one particular controller how
would i do this best.
I'm missing something like :
class ApplicationController
before_filter check_permission , :exclude =>
[MailerController::create]
...
This would exclude all create methods in all controllers which is
exactly the the opposite i need.
is using skip_before_filter the rails way to exclude before_filter for
a certain controller?
This would exclude all create methods in all controllers which is
exactly the the opposite i need.
is using skip_before_filter the rails way to exclude before_filter for
a certain controller?
You can use :only and :except with skip_before_filter, so put the skip
in the specific controller, specifying which actions to skip in that
controller.