remove deprecated GC.copy_on_write_friendly call
fix rails compat for periodic time math