From 7c9adc1d4c1a978c290e5895f980f6e90012aad2 Mon Sep 17 00:00:00 2001 From: Alexander Machehin Date: Wed, 27 Mar 2013 19:37:55 +0600 Subject: [PATCH] [#19] fix undefined method "is_reference_to_issue" --- .../git_presenters/commit_as_message_presenter.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/presenters/git_presenters/commit_as_message_presenter.rb b/app/presenters/git_presenters/commit_as_message_presenter.rb index 666c30a24..8e5d1b251 100644 --- a/app/presenters/git_presenters/commit_as_message_presenter.rb +++ b/app/presenters/git_presenters/commit_as_message_presenter.rb @@ -3,11 +3,11 @@ class GitPresenters::CommitAsMessagePresenter < ApplicationPresenter include CommitHelper attr_accessor :commit - attr_reader :header, :image, :date, :caption, :content, :expandable + attr_reader :header, :image, :date, :caption, :content, :expandable, :is_reference_to_issue def initialize(commit, opts = {}) comment = opts[:comment] - @issue_reference = !!comment # is it reference issue from commit + @is_reference_to_issue = !!comment # is it reference issue from commit @project = if comment Project.where(:id => opts[:comment].data[:from_project_id]).first else @@ -30,7 +30,7 @@ class GitPresenters::CommitAsMessagePresenter < ApplicationPresenter end def header - @header ||= if @issue_reference + @header ||= if @is_reference_to_issue I18n.t('layout.commits.reference', :committer => committer_link, :commit => commit_link) elsif @project.present? I18n.t('layout.messages.commits.header',