Add frozen string literal comment to files.

This commit is contained in:
Guo Xiang Tan 2019-05-13 10:49:26 +08:00
parent dcb9e31b7d
commit 5a459fbb6e
4 changed files with 8 additions and 1 deletions

View File

@ -1,3 +1,5 @@
# frozen_string_literal: true
source 'https://rubygems.org'
group :development do

View File

@ -1,4 +1,5 @@
#!/usr/bin/env ruby
# frozen_string_literal: true
# Usage:
# bundle install

View File

@ -1,3 +1,5 @@
# frozen_string_literal: true
# name: discourse-oauth2-basic
# about: Generic OAuth2 Plugin
# version: 0.3
@ -64,7 +66,7 @@ class OAuth2BasicAuthenticator < ::Auth::OAuth2Authenticator
end
def json_walk(result, user_json, prop)
path = SiteSetting.send("oauth2_json_#{prop}_path")
path = SiteSetting.get("oauth2_json_#{prop}_path")
if path.present?
segments = path.split('.')
val = walk_path(user_json, segments)

View File

@ -1,3 +1,5 @@
# frozen_string_literal: true
require 'rails_helper'
require 'json'