Commit 3b7f9fff
Changed files (2)
app
models
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