Given that I have:
class Status < EnumerateIt::Base
associate_values :active, :inactive
end
And I have a product model that has status.
Today if I want to change only the status value I do:
product = Product.first
product.active!
product.save
But in my way view I think that will be more clear the follow example:
product = Product.first
product.active! # product.update_attribute(:status, Status::Active)
# or
product.active # product.status = Status::Active
product.save
In the @nohup systems we have several rules that change only an enumeration attribute and to avoid the actual approach we subscribe the method!
that to me make more sense.
What do you think about this?
I think more and this couldn't be a good ideia because of the dependency with active_active record.
I will try to find other way.