Results 1 to 9 of 9
Feb 18, 2008, 16:54 #1
- Join Date
- Jul 2004
- 0 Post(s)
- 0 Thread(s)
Calling model methods even when the param is a not set
I'm setting a checkbox values based on the return of a model field method. The way the method is set up - it only gets called when a checkbox value is set.
Here's the model code:
def within=(new_within) @within = new_within == "1" || new_within == true || new_within == 'true' || new_within == 'on' end
Thanks for any help anyone can provide.