diff --git a/app/models/form_handler.rb b/app/models/form_handler.rb index 8cbd5a2e5..1ef74b265 100644 --- a/app/models/form_handler.rb +++ b/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|