Skip to content

Commit 86bac12

Browse files
committed
Adds memoization to Repo#fetcher_json
1 parent 0bef8b3 commit 86bac12

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/models/repo.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ def fetcher
3737
end
3838

3939
def fetcher_json
40-
fetcher.as_json
40+
@fetcher_json ||= fetcher.as_json
4141
end
4242

4343
def issues_fetcher

0 commit comments

Comments
 (0)