remove warning

warning: instance variable @attribute_methods_generated not initialized
We set this variable to `true` so we should not only check `defined?`. Also this variable should be defined because it is initialized when `included` black is called. I think it is better to investigate more why we are getting this warning.