Skip to content

Commit 10ca35f

Browse files
author
root
committed
Add attr_accessible for RepositoryGitConfigKey and RepositoryGitNotification
1 parent 18a7612 commit 10ca35f

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

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)