Skip to content

Commit 41eb179

Browse files
committed
Improve Redmine compat
1 parent 30309ab commit 41eb179

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

app/models/repository_git_extra.rb

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,12 @@
22

33
class RepositoryGitExtra < RedmineGitHosting.old_redmine? ? ActiveRecord::Base : ApplicationRecord
44
include Redmine::SafeAttributes
5+
include Redmine::I18n
56

6-
SMART_HTTP_OPTIONS = [[I18n.t(:label_disabled), '0'],
7-
[I18n.t(:label_http_only), '3'],
8-
[I18n.t(:label_https_only), '1'],
9-
[I18n.t(:label_https_and_http), '2']].freeze
7+
SMART_HTTP_OPTIONS = [[l(:label_disabled), '0'],
8+
[l(:label_http_only), '3'],
9+
[l(:label_https_only), '1'],
10+
[l(:label_https_and_http), '2']].freeze
1011

1112
ALLOWED_URLS = %w[ssh http https go git git_annex].freeze
1213

0 commit comments

Comments
 (0)