Browse Source

feat: memoise lettings forms

full-import-optimisation
natdeanlewissoftwire 1 year ago
parent
commit
6f85c31b59
  1. 4
      app/models/form_handler.rb

4
app/models/form_handler.rb

@ -75,6 +75,10 @@ class FormHandler
end
def lettings_forms
@lettings_forms ||= get_lettings_forms
end
def get_lettings_forms
forms = {}
directories.each do |directory|
Dir.glob("#{directory}/*.json").each do |form_path|

Loading…
Cancel
Save