2014-05-22 11:05:15 +08:00
|
|
|
class BugToOsp < ActiveRecord::Base
|
|
|
|
# attr_accessible :title, :body
|
2014-05-22 17:04:45 +08:00
|
|
|
belongs_to :open_source_project, :foreign_key => "osp_id"
|
|
|
|
belongs_to :bug, :class_name => 'RelativeMemo', :foreign_key => "relative_memo_id"
|
2014-10-15 11:08:41 +08:00
|
|
|
validates :osp_id, presence: true
|
|
|
|
validates :relative_memo_id, presence: true
|
2014-05-22 17:04:45 +08:00
|
|
|
|
2014-05-29 21:42:56 +08:00
|
|
|
scope :visible, lambda {|*args|
|
|
|
|
nil
|
|
|
|
}
|
2014-05-22 11:05:15 +08:00
|
|
|
end
|