From 770f262a6a89ff5335ed452b83d1b8edb3e3ff5d Mon Sep 17 00:00:00 2001 From: Andrew8xx8 Date: Mon, 25 Mar 2013 00:22:45 +0400 Subject: [PATCH] Private added to attr_accessible --- app/models/snippet.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/snippet.rb b/app/models/snippet.rb index 592dfdf..7018dc6 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 -- libgit2 0.21.2