Add helper for rails 4+