active_record_attributes_equality v1.0.0
Released active_record_attributes_equalityust v1.0.0. This gem enhances ActiveRecord::Base#== when comparing two new records, making it look into your attributes hash for a more accurate result.
Ping me if you have any questions or feedback. Best regards,
dbalmeida
Comments
Hey, just a small question: why go through the trouble of creating a module, defining self.included and finally telling ActiveRecord to include it when you could just directly do ActiveRecord::Base.class_eval?
Even though it works both ways, I like to have the code organized. Takes the same time to develop and just looks cleaner ;)
Post a comment