Skip to content

Commit

Permalink
Merge branch 'master' into issue_status_changed_notifications
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexDenisov committed Aug 29, 2012
2 parents 43cad71 + 5afb16e commit 05af565
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions app/models/key.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ class Key < ActiveRecord::Base

validates :key,
presence: true,
:format => { :with => /ssh-.{3} / },
length: { within: 0..5000 }

before_save :set_identifier
Expand Down
2 changes: 1 addition & 1 deletion spec/factories.rb
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ def self.new(type, *args)
title
key do
"""
AAAAB3NzaC1yc2EAAAABJQAAAIEAiPWx6WM4lhHNedGfBpPJNPpZ7yKu+dnn1SJejgt4
ssh-rsa AAAAB3NzaC1yc2EAAAABJQAAAIEAiPWx6WM4lhHNedGfBpPJNPpZ7yKu+dnn1SJejgt4
596k6YjzGGphH2TUxwKzxcKDKKezwkpfnxPkSMkuEspGRt/aZZ9wa++Oi7Qkr8prgHc4
soW6NUlfDzpvZK2H5E7eQaSeP3SAwGmQKUFHCddNaP0L+hM7zhFNzjFvpaMgJw0=
"""
Expand Down

0 comments on commit 05af565

Please sign in to comment.