Added filter class for use in Rails controllers.