git update file

dev_forum
jingquan huang 5 years ago
parent f194370706
commit 194d7ee8d6

@ -653,7 +653,6 @@ class ShixunsController < ApplicationController
content = params[:content] content = params[:content]
author_name = current_user.full_name author_name = current_user.full_name
author_email = current_user.git_mail author_email = current_user.git_mail
Rails.logger.info("111111#######{author_email}")
@content = update_file_content content, @repo_path, @path, author_email, author_name, "Edit by browser" @content = update_file_content content, @repo_path, @path, author_email, author_name, "Edit by browser"
end end

@ -157,7 +157,6 @@ class User < ApplicationRecord
end end
def git_mail def git_mail
Rails.logger.info("111111#######{mail} #222222222####{login}")
mail || "#{login}@educoder.net" mail || "#{login}@educoder.net"
end end

Loading…
Cancel
Save