Commit 3b7f9fff

mo k <mo@mokhan.ca>
2012-03-05 01:58:48
add missing attr_accessible after reading through attr_accessible attack on github today.
1 parent 3ba3bef
Changed files (2)
app/models/category.rb
@@ -1,4 +1,4 @@
 class Category < ActiveRecord::Base
   has_and_belongs_to_many :creations, :join_table => 'creations_categories'
-  # attr_accessible :name, :slug
+  attr_accessible :name, :slug
 end
app/models/favorite.rb
@@ -1,4 +1,5 @@
 class Favorite < ActiveRecord::Base
   belongs_to :user
   belongs_to :creation
+  attr_accessible :user_id, :creation_id
 end