README.md in quantified-1.0.1 vs README.md in quantified-1.1.0
- old
+ new
@@ -44,5 +44,13 @@
one :yard, :is => Length.new(3, :feet)
one :mile, :is => Length.new(5280, :feet)
end
end
end
+
+You can add a custom coder to an ActiveRecord model to deserialize attributes:
+
+ class Package < ActiveRecord::Base
+ serialize :weight, Quantified::Mass.ounces
+ serialize :length, Quantified::Length.inches
+ serialize :width, Quantified::Length.inches
+ end