make scope activerecord 4.1 compatible

this fixes breaking spree 2.3 apps which bump the min rails version to 4.1