fix for filter deprecation in rails 4