[fix] Corrected code for patch to match Rails 4.0.8 (4m)