Making it possible for users to easily register existing MACs

This commit is contained in:
2013-09-23 18:51:22 -07:00
parent cad46e45c5
commit c5e02a51be
4 changed files with 17 additions and 2 deletions

View File

@@ -15,6 +15,7 @@ class User < ActiveRecord::Base
has_many :user_certifications
has_many :certifications, :through => :user_certifications
has_many :payments
has_many :macs
validates_format_of [:twitter_url, :facebook_url, :github_url, :website_url], :with => URI::regexp(%w(http https)), :allow_blank => true