mirror of
https://github.com/internetee/registry.git
synced 2025-05-17 17:59:47 +02:00
Story#105418634 rubymine memory problem
This commit is contained in:
parent
64942a9599
commit
fdd2b6809e
1 changed files with 1 additions and 3 deletions
|
@ -88,10 +88,8 @@ class WhoisRecord < ActiveRecord::Base
|
||||||
end
|
end
|
||||||
|
|
||||||
def generated_body
|
def generated_body
|
||||||
self.json = generated_json if self.json.blank?
|
|
||||||
|
|
||||||
template = Rails.root.join("app/views/for_models/whois.erb".freeze)
|
template = Rails.root.join("app/views/for_models/whois.erb".freeze)
|
||||||
ERB.new(template.read, nil, "-").result.binding
|
ERB.new(template.read, nil, "-").result(binding)
|
||||||
end
|
end
|
||||||
# rubocop:enable Metrics/MethodLength
|
# rubocop:enable Metrics/MethodLength
|
||||||
# rubocop:enable Metrics/AbcSize
|
# rubocop:enable Metrics/AbcSize
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue