Browse Source

memoize sales_forms

pull/1654/head
Phil Lee 3 years ago
parent
commit
c19bef3eda
  1. 2
      app/models/form_handler.rb

2
app/models/form_handler.rb

@ -33,7 +33,7 @@ class FormHandler
end
def sales_forms
{
@sales_forms ||= {
"current_sales" => Form.new(nil, current_collection_start_year, SALES_SECTIONS, "sales"),
"previous_sales" => Form.new(nil, previous_collection_start_year, SALES_SECTIONS, "sales"),
"next_sales" => Form.new(nil, next_collection_start_year, SALES_SECTIONS, "sales"),

Loading…
Cancel
Save