Update for latest comfy and rails 4