filter object use #before not #filter to avoid Rails 4.0 deprecation