I have a set of controllers in the folder /controllers/admin that all look like this and having the same filter
:
module Admin
class UsersController < ApplicationController
before_action :some_method
#actions
end
end
How could each namespaced controller inherit the before_action :some_method
from a central place?