Skip to content

Commit ecc9247

Browse files
author
root
committed
Merge branch 'devel' into feat_protected_branches
2 parents d4ab808 + 10ca35f commit ecc9247

5 files changed

+9
-4
lines changed

Diff for: app/models/git_cache.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
class GitCache < ActiveRecord::Base
22
unloadable
33

4-
attr_accessible :command, :command_output, :repo_identifier
4+
attr_accessible :repo_identifier, :command, :command_output
55
end

Diff for: app/models/github_comment.rb

+2-1
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,6 @@ class GithubComment < ActiveRecord::Base
33

44
belongs_to :journal
55

6-
validates_uniqueness_of :github_id, :scope => :journal_id
6+
validates :github_id, :presence => true
7+
validates :journal_id, :presence => true, :uniqueness => { :scope => :github_id }
78
end

Diff for: app/models/github_issue.rb

+2-1
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,6 @@ class GithubIssue < ActiveRecord::Base
33

44
belongs_to :issue
55

6-
validates_uniqueness_of :github_id, :scope => :issue_id
6+
validates :github_id, :presence => true
7+
validates :issue_id, :presence => true, :uniqueness => { :scope => :github_id }
78
end

Diff for: app/models/repository_git_config_key.rb

+2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
class RepositoryGitConfigKey < ActiveRecord::Base
22
unloadable
33

4+
attr_accessible :key, :value
5+
46
## Relations
57
belongs_to :repository
68

Diff for: app/models/repository_git_notification.rb

+2-1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@ class RepositoryGitNotification < ActiveRecord::Base
33

44
VALID_EMAIL_REGEX = /\A[\w+\-.]+@[a-z\d\-]+(?:\.[a-z\d\-]+)*\.[a-z]+\z/i
55

6+
attr_accessible :prefix, :sender_address, :include_list, :exclude_list
7+
68
## Relations
79
belongs_to :repository
810

@@ -49,5 +51,4 @@ def validate_mailing_list
4951
end
5052
end
5153

52-
5354
end

0 commit comments

Comments
 (0)