Cleans up rails related funcions and aliases