attr_accessible is deprecated on Rails 4, and this patch is not gonna work for spree 2