about summary refs log tree commit diff
path: root/app/models/concerns
diff options
context:
space:
mode:
authorabcang <abcang1015@gmail.com>2020-07-15 02:05:07 +0900
committerGitHub <noreply@github.com>2020-07-14 19:05:07 +0200
commit6a96af4d20129cea06c716393338aa4f730b7b35 (patch)
tree071f96680125fb4120fc54c1c7ef646bedcf54f3 /app/models/concerns
parenta8e84a18f1d84943e8332ff8deba9d91b1cb3efd (diff)
Fix rubocop warning (#14288)
* Fix rubocop warning

* use limit variable

* use ContextCreatingMethods option
Diffstat (limited to 'app/models/concerns')
-rw-r--r--app/models/concerns/omniauthable.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/concerns/omniauthable.rb b/app/models/concerns/omniauthable.rb
index 736da6c1d..4ea219537 100644
--- a/app/models/concerns/omniauthable.rb
+++ b/app/models/concerns/omniauthable.rb
@@ -57,7 +57,7 @@ module Omniauthable
 
       user = User.new(user_params_from_auth(email, auth))
 
-      user.account.avatar_remote_url = auth.info.image if auth.info.image =~ /\A#{URI.regexp(%w(http https))}\z/
+      user.account.avatar_remote_url = auth.info.image if auth.info.image =~ /\A#{URI::DEFAULT_PARSER.make_regexp(%w(http https))}\z/
       user.skip_confirmation!
       user.save!
       user