summaryrefslogtreecommitdiff
path: root/app/models/snippet.rb
diff options
context:
space:
mode:
authorAndrew8xx8 <avk@8xx8.ru>2013-03-25 00:22:45 +0400
committerAndrew8xx8 <avk@8xx8.ru>2013-03-25 00:22:45 +0400
commit770f262a6a89ff5335ed452b83d1b8edb3e3ff5d (patch)
treee748dbe68d21b7cbccf7b5cd9ec4d100012cf226 /app/models/snippet.rb
parent718ec26a23e3e303e04c569447acf963b9ef307e (diff)
downloadgitlab-ce-770f262a6a89ff5335ed452b83d1b8edb3e3ff5d.tar.gz
Private added to attr_accessible
Diffstat (limited to 'app/models/snippet.rb')
-rw-r--r--app/models/snippet.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/snippet.rb b/app/models/snippet.rb
index 592dfdfbb57..7018dc67ab7 100644
--- a/app/models/snippet.rb
+++ b/app/models/snippet.rb
@@ -17,7 +17,7 @@
class Snippet < ActiveRecord::Base
include Linguist::BlobHelper
- attr_accessible :title, :content, :file_name, :expires_at
+ attr_accessible :title, :content, :file_name, :expires_at, :private
belongs_to :author, class_name: "User"
has_many :notes, as: :noteable, dependent: :destroy