I have no idea how to "metatize" this method, but I know it should be simple. The method looks like this
def check_sent=(value)
Date.parse(value) rescue @dates_bad = true
self.write_attribute(:check_sent, value)
end
This is for an ActiveRecord subclass. I would like to have these methods for all fields that I specify. Is there any way to do this in Ruby?