[Fixes#78829910] Fixes deprecated syntax in rails 4