Story#105418634 rubymine memory problem

This commit is contained in:
Vladimir Krylov 2015-10-28 20:53:27 +02:00
parent 64942a9599
commit fdd2b6809e

View file

@ -88,10 +88,8 @@ class WhoisRecord < ActiveRecord::Base
end
def generated_body
self.json = generated_json if self.json.blank?
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
# rubocop:enable Metrics/MethodLength
# rubocop:enable Metrics/AbcSize