Displaying 1 result from an estimated 1 matches for "enabled_on".
Did you mean:
enable_done
2005 Dec 25
0
Setter not being called
I have written the followign setter to raise an exception when the field
disabled_on is beeing assigned a value minor or equal that the enabled_on
field.
class Survey < ActiveRecord::Base
def disabled_on=(date)
raise AssignmentException if date != nil and date <= self.enabled_on
write_attribute(:disabled_on, date)
end
end
The matter is that this method never gets called, as I can assure adding a
breakpoint() as its first l...