Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Mass Assignment fixed for comment model

  • Loading branch information...
commit 0e23bafa41113bd925add719514c58af7ae41c87 1 parent 3a2d5e8
@PragTob authored
Showing with 2 additions and 0 deletions.
  1. +2 −0  app/models/comment.rb
View
2  app/models/comment.rb
@@ -4,6 +4,8 @@ class Comment < ActiveRecord::Base
belongs_to :user
belongs_to :user_story
+ attr_accessible :date, :content, :user_story_id, :user_story
+
validates :date, presence: true
after_initialize :init
Please sign in to comment.
Something went wrong with that request. Please try again.