Skip to content

Commit

Permalink
Change patch method visibility
Browse files Browse the repository at this point in the history
  • Loading branch information
Lobster committed Oct 22, 2019
1 parent 66a7839 commit a3c70df
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions lib/redmine_zulip/issue_patch.rb
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,10 @@ def subject_without_punctuation
subject.end_with?(".") ? subject[0..-1] : subject
end

def zulip_settings
@_zulip_settings ||= RedmineZulip::Settings.new(self)
end

private

def zulip_api
Expand All @@ -105,10 +109,6 @@ def zulip_api
)
end

def zulip_settings
@_zulip_settings ||= RedmineZulip::Settings.new(self)
end

def notify_assignment
locale = assigned_to.language
message = I18n.t("zulip_notify_assignment", {
Expand Down
2 changes: 1 addition & 1 deletion lib/redmine_zulip/settings.rb
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ def version_updates_subject
private

def evaluate_expression(expression)
return nil if pattern.nil?
return nil if expression.nil?
expression.gsub("${issue_id}", "#{@issue.id}")
.gsub("${issue_subject}", @issue.subject_without_punctuation)
.gsub("${project_name}", @issue.project.name)
Expand Down

0 comments on commit a3c70df

Please sign in to comment.