Join GitHub today
Timestampable and Aggregate_column on the same table #750
Everytime aggregate_column behavior update main table timestampable behavior update updated_at column. This could be the expected result but I have some situations where it would be better if the updated_at column keeps unchanged.
My idea is to add a parameter to aggregate_column behavior like "timestampable_keep_unchanged" and than check if it's setted to true and if the table has timestampable behavior. If so it will add a call to keepUpdateUnchanged method (from timestampable behavior) from inside update method (from aggregate_column).
I've written some line of code, do you think it could be useful? (Well, it surely will be useful to me :D )