This gem is pack of methods to convert or validate different formats of strings and texts in model, like telephone numbers (CZ/SK format), email, or (european) names (currently). Or to clean string of too much whitespaces. It provides *convert* methods for attributes of model (getter and setter method in object is enough). They are used in save hooks. There are also *validator* methods for ActiveModel nd hook for automatic ActiveRecord integration. Just type: (`require 'paranoid_starlight/active_record'`) Specs included.
Required Ruby Version
>= 1.9.2
Authors
Ivan Stana
Versions
- 2.0.1 January 16, 2013 (10.5 KB)
- 2.0 December 29, 2012 (10.5 KB)
- 1.4.0 December 26, 2012 (9 KB)
- 1.3.0 December 18, 2012 (9 KB)
- 1.2.0 December 18, 2012 (8.5 KB)