Skip to content
Snippets Groups Projects
Commit 99410a47 authored by Lin Jen-Shin's avatar Lin Jen-Shin
Browse files

Fetch locals to avoid undefined method/local error

parent b9b508ad
Branches
Tags
No related merge requests found
- ref = local_assigns.fetch(:ref)
- status = commit.status(ref) - status = commit.status(ref)
- if status - if status
= link_to builds_namespace_project_commit_path(commit.project.namespace, commit.project, commit), class: "ci-status ci-#{status}" do = link_to builds_namespace_project_commit_path(commit.project.namespace, commit.project, commit), class: "ci-status ci-#{status}" do
Loading
Loading
- ref = local_assigns.fetch(:ref)
- if @note_counts - if @note_counts
- note_count = @note_counts.fetch(commit.id, 0) - note_count = @note_counts.fetch(commit.id, 0)
- else - else
Loading
Loading
- ref = local_assigns.fetch(:ref)
- commits, hidden = limited_commits(@commits) - commits, hidden = limited_commits(@commits)
   
- commits.chunk { |c| c.committed_date.in_time_zone.to_date }.each do |day, commits| - commits.chunk { |c| c.committed_date.in_time_zone.to_date }.each do |day, commits|
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment