Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNihad Abbasov <narkoz.2008@gmail.com>2012-09-26 22:17:17 +0400
committerNihad Abbasov <narkoz.2008@gmail.com>2012-09-26 22:18:35 +0400
commit83efcabc829083f11553df0f1eb67a8fbbc3e000 (patch)
tree2017dc24ab9630ad9a227dffde27550ededcc92f /app/models/wiki.rb
parent4629cc44d6b7fa7ebdec8ce47bb0825e255d7763 (diff)
set activerecord whitelist_attributes to true
Diffstat (limited to 'app/models/wiki.rb')
-rw-r--r--app/models/wiki.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/app/models/wiki.rb b/app/models/wiki.rb
index ebb1ff49c7a..b053f5ad412 100644
--- a/app/models/wiki.rb
+++ b/app/models/wiki.rb
@@ -1,4 +1,6 @@
class Wiki < ActiveRecord::Base
+ attr_accessible :title, :content, :slug
+
belongs_to :project
belongs_to :user
has_many :notes, as: :noteable, dependent: :destroy