mirror of
https://github.com/internetee/registry.git
synced 2025-08-03 16:32:04 +02:00
Remove dead code
This commit is contained in:
parent
915ebbff08
commit
fd95d76c49
3 changed files with 1 additions and 5 deletions
|
@ -1,5 +1,4 @@
|
|||
class LegalDocument < ApplicationRecord
|
||||
cattr_accessor :explicitly_write_file
|
||||
include EppErrors
|
||||
MIN_BODY_SIZE = (1.37 * 3.kilobytes).ceil
|
||||
|
||||
|
@ -44,7 +43,7 @@ class LegalDocument < ApplicationRecord
|
|||
break unless File.file?(path)
|
||||
end
|
||||
|
||||
File.open(path, 'wb') { |f| f.write(binary) } if !Rails.env.test? || self.class.explicitly_write_file
|
||||
File.open(path, 'wb') { |f| f.write(binary) } if !Rails.env.test?
|
||||
self.path = path
|
||||
self.checksum = digest
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue