Pastie now auto-senses if line-wrap is a bad or good idea. Feedback?
1 2 3 4 5 6 7
def monthly_rent_amount_in_dollars=(rent) self.monthly_rent_amount = (rent.to_f * 100).to_i end def monthly_rent_amount_in_dollars self.monthly_rent_amount / 100.0 if self.monthly_rent_amount end
Pasted April 13, 200712:38AM EDT
by Erik Kastner (kastner)
Embed
paste again