set activerecord whitelist_attributes to true
This commit is contained in:
parent
4629cc44d6
commit
83efcabc82
28 changed files with 100 additions and 44 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue