Skip to content

Instantly share code, notes, and snippets.

@brett-richardson
Created March 13, 2014 21:38
Show Gist options
  • Save brett-richardson/9537519 to your computer and use it in GitHub Desktop.
Save brett-richardson/9537519 to your computer and use it in GitHub Desktop.
class User
active_ingredients do
phone Phone, validate: true, unique: true
address Address, validate: true
website Url, validate: true
end
end
require 'phony'
class Phone < ActiveIngredient
def value
Phony.normalize @value
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment