lib/open_project/gitolite/patches/user_patch.rb
def fix_gitolite_public_keys!
          User.transaction do
            gitolite_public_keys.each do |pk|
              pk.update_column :title, GitolitePublicKey.valid_title_from(pk.title)
              pk.update_column :identifier, gitolite_identifier
            end
          end
        end
##
# Checks the user's gitolite public keys and makes sure they have the correct
# identifier of "$login_$id".
Checks the user's gitolite public keys and makes sure they have the correct
identifier of "$login_$id".
Checks the user ' s gitolite public keys and makes sure they have the correct identifier of " $login_$id " .
def fix_gitolite_public_keys!
          User.transaction do
            gitolite_public_keys.each do |pk|
              pk.update_column :title, GitolitePublicKey.valid_title_from(pk.title)
              pk.update_column :identifier, gitolite_identifier
            end
          end
        end
def fix_gitolite_public_keys! User . transaction do gitolite_public_keys . each do | pk | pk . update_column :title , GitolitePublicKey . valid_title_from ( pk . title ) pk . update_column :identifier , gitolite_identifier end end end
Checks the user's gitolite public keys and makes sure they have the correct
identifier of "$login_$id".
Checks the user ' s gitolite public keys and makes sure they have the correct identifier of " $login_$id " .