From b40094abc2cf94f2bac5e852927f1cfe3d87303c Mon Sep 17 00:00:00 2001 From: rtdp Date: Fri, 15 Jun 2012 19:04:47 +0530 Subject: [PATCH] attr-accessible changes for idea model --- app/models/idea.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/models/idea.rb b/app/models/idea.rb index 5eeda8a..6a02289 100644 --- a/app/models/idea.rb +++ b/app/models/idea.rb @@ -8,8 +8,8 @@ class Idea < ActiveRecord::Base has_many :categories, :through => :idea_categories validates :user_id, :title, :original_desc, :presence => true - - attr_accessible :title, :original_desc, :user_id, :category_ids, :github + + attr_accessible :title, :original_desc, :user_id, :category_ids, :github, :description before_save :format_description