bigdir/app/models/bug_to_osp.rb

13 lines
325 B
Ruby

class BugToOsp < ActiveRecord::Base
# attr_accessible :title, :body
belongs_to :open_source_project, :foreign_key => "osp_id"
belongs_to :bug, :class_name => 'RelativeMemo', :foreign_key => "relative_memo_id"
validates_presence_of :osp_id, :relative_memo_id
scope :visible, lambda {|*args|
nil
}
end