Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Léo-Paul Géneau
gitlab-ce
Commits
40ffa840
Commit
40ffa840
authored
Sep 28, 2017
by
Alexis Reigel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add request store caching to favicon
parent
85a8e6f2
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
lib/gitlab/favicon.rb
lib/gitlab/favicon.rb
+1
-1
spec/lib/gitlab/favicon_spec.rb
spec/lib/gitlab/favicon_spec.rb
+1
-1
No files found.
lib/gitlab/favicon.rb
View file @
40ffa840
...
...
@@ -24,7 +24,7 @@ module Gitlab
private
def
appearance
Appearance
.
current
||
Appearance
.
new
RequestStore
.
store
[
:appearance
]
||=
(
Appearance
.
current
||
Appearance
.
new
)
end
def
appearance_favicon
...
...
spec/lib/gitlab/favicon_spec.rb
View file @
40ffa840
require
'rails_helper'
RSpec
.
describe
Gitlab
::
Favicon
do
RSpec
.
describe
Gitlab
::
Favicon
,
:request_store
do
describe
'.default'
do
it
'defaults to favicon.ico'
do
allow
(
Rails
).
to
receive
(
:env
).
and_return
(
ActiveSupport
::
StringInquirer
.
new
(
'production'
))
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment