You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
pgfqe6ch8/app/models/share.rb

19 lines
376 B

6 years ago
class Share < ActiveRecord::Base
include Redmine::SafeAttributes
attr_accessible :created_on, :share_type, :title, :url,:project_id,:user_id, :description
validates_presence_of :project_id
belongs_to :project
belongs_to :user
safe_attributes 'project_id',
'user_id',
'url',
'title',
'share_type',
'crated_on',
'description'
end