mirror of
https://github.com/dolphin-emu/redmine_issue_templates.git
synced 2026-01-31 01:15:19 +01:00
13 lines
374 B
Ruby
13 lines
374 B
Ruby
class IssueTemplate < ActiveRecord::Base
|
|
unloadable
|
|
belongs_to :project
|
|
belongs_to :author, :class_name => 'User', :foreign_key => 'author_id'
|
|
belongs_to :tracker
|
|
validates_presence_of :project, :title, :description, :tracker
|
|
validates_uniqueness_of :title, :scope => :project_id
|
|
|
|
def enabled?
|
|
self.enabled == true
|
|
end
|
|
end
|