Merge pull request #40 from vslinko/patch-1

Increase max key length. Some keys has comment after key string.
This commit is contained in:
Dmitriy Zaporozhets 2011-10-18 23:30:06 -07:00
commit 3a2b273316

View file

@ -8,7 +8,7 @@ class Key < ActiveRecord::Base
validates :key,
:presence => true,
:uniqueness => true,
:length => { :within => 0..555 }
:length => { :within => 0..1024 }
before_save :set_identifier
after_save :update_gitosis