gitlab-org--gitlab-foss/app/models/project_services/redmine_service.rb

26 lines
585 B
Ruby
Raw Normal View History

2015-01-20 19:46:27 -05:00
class RedmineService < IssueTrackerService
validates :project_url, :issues_url, :new_issue_url, presence: true, url: true, if: :activated?
2015-01-20 19:46:27 -05:00
prop_accessor :title, :description, :project_url, :issues_url, :new_issue_url
def title
2015-01-26 19:24:11 -05:00
if self.properties && self.properties['title'].present?
self.properties['title']
else
'Redmine'
end
2015-01-20 19:46:27 -05:00
end
def description
2015-01-26 19:24:11 -05:00
if self.properties && self.properties['description'].present?
self.properties['description']
else
'Redmine issue tracker'
end
2015-01-20 19:46:27 -05:00
end
def self.to_param
2015-01-20 19:46:27 -05:00
'redmine'
end
end