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

  1. 2.0.1 January 16, 2013 (10.5 KB)
  2. 2.0 December 29, 2012 (10.5 KB)
  3. 1.4.0 December 26, 2012 (9 KB)
  4. 1.3.0 December 18, 2012 (9 KB)
  5. 1.2.0 December 18, 2012 (8.5 KB)
Show all versions (7 total)

SHA 256 checksum