fix for ActiveRecord::Base.find_generated_attribute_method