Add helper for rails 4+
Add helper for rails 4+