File tree Expand file tree Collapse file tree 1 file changed +14
-7
lines changed Expand file tree Collapse file tree 1 file changed +14
-7
lines changed Original file line number Diff line number Diff line change @@ -2,13 +2,20 @@ class Settings::SyntaxHighlightsController < ApplicationController
2
2
def show
3
3
@syntax_highlight = find_syntax_highlight
4
4
5
- render Settings ::SyntaxHighlights ::ShowView . new (
6
- settings : Settings . new ( syntax_highlight : @syntax_highlight ) ,
7
- available_highlights : Settings ::SyntaxHighlight . curated ,
8
- preview_syntax_highlight : preview_syntax_highlight ,
9
- session_syntax_highlight : session_syntax_highlight ,
10
- default_syntax_highlight : default_syntax_highlight
11
- )
5
+ respond_to do |format |
6
+ format . html {
7
+ render Settings ::SyntaxHighlights ::ShowView . new (
8
+ settings : Settings . new ( syntax_highlight : @syntax_highlight ) ,
9
+ available_highlights : Settings ::SyntaxHighlight . curated ,
10
+ preview_syntax_highlight : preview_syntax_highlight ,
11
+ session_syntax_highlight : session_syntax_highlight ,
12
+ default_syntax_highlight : default_syntax_highlight
13
+ )
14
+ }
15
+ format . css {
16
+ render file : @syntax_highlight . path , layout : false
17
+ }
18
+ end
12
19
end
13
20
14
21
def update
You can’t perform that action at this time.
0 commit comments