#40 max key length

This commit is contained in:
Zevs 2011-10-18 23:22:04 +03:00
parent f8b5e5f78e
commit 85265b1bac

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