search for: 51degrees

Displaying 3 results from an estimated 3 matches for "51degrees".

Did you mean: 0degrees
2006 Jan 16
5
Soft Deletes
How would I go about setting up my rails applications to soft delete items from the database rather than actually deleting it. I would imagine that I need to over ride the methods from ActiveRecord. Where would I do this would it be in the model? enviroment.rb? I would imagine that if i wanted it throughout my entire application it would need to be in the enviroment.rb. Also to
2006 Feb 28
0
Designer Wanted
...ce their skills and their portfolio. Where money is involved, I propose a 50:50 split of any profits, just to keep things simple. I''m not sure this is the most appropriate place to ask. But I thought I''d give it a go first. If you want to email me off-list my email is: olly@51degrees.net Cheers.
2006 Feb 13
0
Including a Module within a model
If I have a module with a callback in it: module Sanitize module PhoneNumber def before_validation self.phone.gsub!(/\D/, '''') if attribute_present?(''phone'') end end module MobileNumber def before_validation self.mobile.gsub!(/\D/, '''') if attribute_present?(''mobile'') end end end