I would probably add an initializer instead of using a before filter in the controller. See https://github.com/CoderDojoSF/event-app/tree/master/config/initializers