Skip to content

Commit a3c70df

Browse files
author
Lobster
committed
Change patch method visibility
1 parent 66a7839 commit a3c70df

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

lib/redmine_zulip/issue_patch.rb

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,10 @@ def subject_without_punctuation
9595
subject.end_with?(".") ? subject[0..-1] : subject
9696
end
9797

98+
def zulip_settings
99+
@_zulip_settings ||= RedmineZulip::Settings.new(self)
100+
end
101+
98102
private
99103

100104
def zulip_api
@@ -105,10 +109,6 @@ def zulip_api
105109
)
106110
end
107111

108-
def zulip_settings
109-
@_zulip_settings ||= RedmineZulip::Settings.new(self)
110-
end
111-
112112
def notify_assignment
113113
locale = assigned_to.language
114114
message = I18n.t("zulip_notify_assignment", {

lib/redmine_zulip/settings.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ def version_updates_subject
5151
private
5252

5353
def evaluate_expression(expression)
54-
return nil if pattern.nil?
54+
return nil if expression.nil?
5555
expression.gsub("${issue_id}", "#{@issue.id}")
5656
.gsub("${issue_subject}", @issue.subject_without_punctuation)
5757
.gsub("${project_name}", @issue.project.name)

0 commit comments

Comments
 (0)