mirror of
https://github.com/internetee/registry.git
synced 2025-07-25 12:08:27 +02:00
Fix CodeClimate issues
This commit is contained in:
parent
9e2ce0351d
commit
7a5a46b158
4 changed files with 17 additions and 15 deletions
|
@ -8,7 +8,7 @@ end
|
|||
# Store console and rake changes in versions
|
||||
if defined?(::Rails::Console) || File.basename($PROGRAM_NAME).split(' ').first == 'spring'
|
||||
PaperTrail.whodunnit = "console-#{`whoami`.strip}"
|
||||
elsif File.basename($PROGRAM_NAME) == "rake"
|
||||
elsif File.basename($PROGRAM_NAME) == 'rake'
|
||||
# rake username does not work when spring enabled
|
||||
PaperTrail.whodunnit = "rake-#{`whoami`.strip} #{ARGV.join ' '}"
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue