[#19] fix undefined local variable or method 'options'

This commit is contained in:
Alexander Machehin 2013-04-09 16:25:05 +06:00
parent ff0d5733aa
commit 923f06cc10
1 changed files with 1 additions and 1 deletions

View File

@ -189,7 +189,7 @@ module Modules
def reference_commit(identifier) def reference_commit(identifier)
if commit = @project.repo.commit(identifier) if commit = @project.repo.commit(identifier)
link_to shortest_hash_id(@commit.id), commit_path(options[:project], @commit.id) link_to shortest_hash_id(@commit.id), commit_path(@project, @commit.id)
title = GitPresenters::CommitAsMessagePresenter.present(commit, :project => @project).caption title = GitPresenters::CommitAsMessagePresenter.present(commit, :project => @project).caption
link_to(identifier, commit_path(@project, commit), html_options.merge(title: title, class: "gfm gfm-commit #{html_options[:class]}")) link_to(identifier, commit_path(@project, commit), html_options.merge(title: title, class: "gfm gfm-commit #{html_options[:class]}"))
end end