Skip to content

Commit

Permalink
allow nil for Organization#domain
Browse files Browse the repository at this point in the history
  • Loading branch information
mislav committed Sep 2, 2010
1 parent a27bb45 commit 447069c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/models/organization.rb
Expand Up @@ -10,7 +10,7 @@ class Organization < ActiveRecord::Base

validates_presence_of :permalink
validates_uniqueness_of :permalink, :case_sensitive => false
validates_uniqueness_of :domain, :case_sensitive => false
validates_uniqueness_of :domain, :case_sensitive => false, :allow_nil => true
validates_length_of :permalink, :minimum => 4
validates_exclusion_of :permalink, :in => %w(www help support mail pop smtp ftp)

Expand Down

0 comments on commit 447069c

Please sign in to comment.