More resource adding

This commit is contained in:
2014-02-09 03:42:17 -07:00
parent 74e60d4ec9
commit 23dcb0715c
11 changed files with 277 additions and 14 deletions

View File

@@ -1,4 +1,6 @@
class Resource < ActiveRecord::Base
attr_accessible :supercategory, :user_id, :category_id, :name, :serial, :specs, :status, :donatable, :picture, :picture_file_name, :picture_content_type, :picture_file_size, :picture_updated_at, :notes, :estimated_value
belongs_to :owner, :class_name => "ToolshareUser" #TODO: remove owner
belongs_to :user
belongs_to :category, :class_name => "ResourceCategory"