Permalink
Browse files

Readme changed to add lambda example.

  • Loading branch information...
1 parent 0c9bef0 commit 504c0d7ef7908796c1799af2456680bdc2ddfc10 Ronni Rasmussen committed Mar 13, 2012
Showing with 4 additions and 0 deletions.
  1. +4 −0 README.md
View
@@ -17,3 +17,7 @@ measurement :height, :model_unit => :feet, :database_unit => :meter
You can specify multiple columns and add options like this.
measurement :width, :height, :model_unit => :feet, :database_unit => :meter
+
+You can also use lambda for the unit options like this.
+
+measurement :height, :model_unit => lambda { Settings.units.model['distance'] }, :database_unit => :meter

0 comments on commit 504c0d7

Please sign in to comment.