Sha256: 5319ea27f66f458d841796d7e4d723c30bff78f0b51c9bb63225bc0742fc20e1

Contents?: true

Size: 539 Bytes

Versions: 3

Compression:

Stored size: 539 Bytes

Contents

= have-code

Add clever little base36 codes for your DataMapper and ActiveRecord objects.

== Whoa seriously??

   # ActiveRecord
   initech = Mug.create :name=>'initech', :material=>'porcelain'
   code = initech.code
   initech == Mug.find_by_code code
   
   # DataMapper
   kohg = Goblet.create :name=>'king of hyrule', :material=>'gold'
   code = kohg.code
   kohg == Goblet.find_by_code code

== Dependencies

* bkerley-affine (waiting on rubyforge to approve)

== Copyright

Copyright (c) 2009 Bryce Kerley. See LICENSE for details.

Version data entries

3 entries across 3 versions & 2 rubygems

Version Path
bkerley-have-code-0.1.1 README.rdoc
bkerley-have-code-0.1.2 README.rdoc
have-code-0.1.2 README.rdoc