Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Readme changed to add lambda example.

  • Loading branch information...
commit 504c0d7ef7908796c1799af2456680bdc2ddfc10 1 parent 0c9bef0
Ronni Rasmussen authored
Showing with 4 additions and 0 deletions.
  1. +4 −0 README.md
View
4 README.md
@@ -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
Please sign in to comment.
Something went wrong with that request. Please try again.