> it just adds the `unless generated_attribute_methods.constants.include?(:AttrNames)` so that the warning does not generated as in https://github.com/rails/rails/issues/10507

https://github.com/phoet/on_ruby/commit/a01585e36e215bb65b354bda88e0d5be088c77d2