fix attr_enumarable_helper for ruby 2.1