Skip to content
Snippets Groups Projects
Commit 73dc8b10 authored by Oleg Valter's avatar Oleg Valter
Browse files

removed no longer needed ensure_protocol

parent 4a369620
Branches
Tags
No related merge requests found
...@@ -366,18 +366,6 @@ class UsersController < ApplicationController ...@@ -366,18 +366,6 @@ class UsersController < ApplicationController
end end
end end
# Ensure that a "naked" URL like example.com gets a protocol.
def ensure_protocol(uri)
# URI::Generic indicates the user didn't include a protocol
if URI.parse(uri).instance_of?(URI::Generic)
"https://#{uri}"
else
uri
end
rescue URI::InvalidURIError
nil
end
def update_profile def update_profile
profile_params = params.require(:user).permit(:username, profile_params = params.require(:user).permit(:username,
:profile_markdown, :profile_markdown,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment