Problem:
composite_primary_keys's override of ActiveRecord::AttributeMethods.has_attribute? uses AttributeMethods.attributes instead of @attributes as the original method it overrides does. This conflicts with gems which override AttributeMethods.attributes, creating a situation which will cause a SystemStackError.
Fix:
In the gem's override of has_attribute?, convert the attributes call to a direct access to @attributes.
Problem:
composite_primary_keys
's override of ActiveRecord::AttributeMethods.has_attribute? uses AttributeMethods.attributes instead of @attributes as the original method it overrides does. This conflicts with gems which override AttributeMethods.attributes, creating a situation which will cause a SystemStackError.Fix: In the gem's override of has_attribute?, convert the
attributes
call to a direct access to@attributes
.