I have this:
def self.testing
nodo = Attribute.where(:product_attribute_type_id => 7, :value => 1)
end
in a Product class method, then I load Attribute Class before a load Product class, then I call the testing method:
a = Product.testing
But I get this error:
undefined method `where' for ActiveRecord::AttributeMethods::Serialization::Attribute:Class
Pointing at testing method, I read some errors and question here, but I don't get error.
Can anyone help me, please?