mend
Fix for rails 4