Commit be1563be

mo k <mo@mokhan.ca>
2012-06-08 04:56:21
allow for category updates to a creation.
1 parent 48c662e
Changed files (1)
app
app/models/creation.rb
@@ -2,7 +2,7 @@ class Creation < ActiveRecord::Base
   acts_as_commentable
   validates :name,  :presence => true
   validates :image,  :presence => true
-  attr_accessible :user_id, :story, :name, :image, :remote_image_url
+  attr_accessible :user_id, :story, :name, :image, :remote_image_url, :category_ids
   belongs_to :user
   has_and_belongs_to_many :categories, :join_table => 'creations_categories', :uniq => true, :autosave => true
   has_many :photos, :dependent => :destroy