Links
Categories
Ar uid
Access any active record model in your application via a uid (uuid)
Why? I don’t want to expose any database ID’s to the outside world.
How?
u = User.find(1)
u.uid # = b0e43d5be1cf39db93aa5da6fc02b5b2
u = User.find_by_uid('b0e43d5be1cf39db93aa5da6fc02b5b2')
Requirements
- uuid
- rails 2.3.2 (afaik)
Vitals
| Home | http://github.com/techniek/ar_uid |
|---|---|
| Repository | git://github.com/techniek/ar_uid.git |
| License | Ruby's |
| Tags |
|
| Rating | (0 votes) |
| Owner | techniek |
| Created | 11 June 2009 |

