Permalink
Browse files

Update README too.

  • Loading branch information...
1 parent e03cfb1 commit 1885702903afc6ad03f8e3cc6bee20e2d617a01f @therealadam committed Oct 28, 2009
Showing with 2 additions and 0 deletions.
  1. +2 −0 README.md
View
@@ -7,6 +7,8 @@ Ticket model's status column is "open" or "closed" you would create the
following mapping:
class Ticket < ActiveRecord::Base
+ include AttributeMapper
+
map_attribute :status, :to => {:open => 1, :closed => 2}
end

0 comments on commit 1885702

Please sign in to comment.