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
1
Merge Requests
1
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
nexedi
gitlab-ce
Commits
37f23ec2
Commit
37f23ec2
authored
Jul 09, 2020
by
Robert May
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Ensure frozen_string_literal is set
parent
36bdbead
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
3 deletions
+5
-3
config/initializers/multi_json.rb
config/initializers/multi_json.rb
+3
-2
config/initializers/oj.rb
config/initializers/oj.rb
+2
-1
No files found.
config/initializers/multi_json.rb
View file @
37f23ec2
# frozen_string_literal: true
# Explicitly set the JSON adapter used by MultiJson
# Currently we want this to default to the existing
# json gem
# Currently we want this to default to the existing json gem
MultiJson
.
use
(
:json_gem
)
config/initializers/oj.rb
View file @
37f23ec2
#
Ensure Oj runs in json-gem compatibility mode by default
#
frozen_string_literal: true
# Ensure Oj runs in json-gem compatibility mode by default
Oj
.
default_options
=
{
mode: :rails
}
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