search for: font_size_unit

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

2006 Jul 13
1
Incorrect composed_of I think
...to do this? Thanx for any and all info. Code... # My model is simple: class Element < ActiveRecord::Base composed_of :fontsize, :class_name => "Property", :mapping => [ %w(font_size amount), %w(font_size_unit unit) ] end # My class for this is simple: class Property attr_reader :amount, :unit def intialize(amount, unit) @amount = amount @unit = unit end def to_s @amount.to_s + @unit end end -- :// Nathan Herald