Commit 770f262a6a89ff5335ed452b83d1b8edb3e3ff5d

Authored by Andrew8xx8
1 parent 718ec26a

Private added to attr_accessible

Showing 1 changed file with 1 additions and 1 deletions   Show diff stats
app/models/snippet.rb
... ... @@ -17,7 +17,7 @@
17 17 class Snippet < ActiveRecord::Base
18 18 include Linguist::BlobHelper
19 19  
20   - attr_accessible :title, :content, :file_name, :expires_at
  20 + attr_accessible :title, :content, :file_name, :expires_at, :private
21 21  
22 22 belongs_to :author, class_name: "User"
23 23 has_many :notes, as: :noteable, dependent: :destroy
... ...