search for: disabled_on

Displaying 1 result from an estimated 1 matches for "disabled_on".

Did you mean: disabled_at
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...