You can remove this for rails 4.  I was writing on spree 2.0.x not 2.1.x at the time.