Browse Source

Cache setup subsection page generation

pull/810/head
baarkerlounger 3 years ago
parent
commit
f77bab6c0a
  1. 3
      app/models/form/setup/subsections/setup.rb

3
app/models/form/setup/subsections/setup.rb

@ -3,12 +3,11 @@ class Form::Subsections::Setup < ::Form::Subsection
super
@id = "setup"
@label = "Set up this lettings log"
@pages = [pages]
@section = section
end
def pages
[
@pages ||= [
Form::Setup::Pages::Organisation.new(nil, nil, self),
Form::Setup::Pages::CreatedBy.new(nil, nil, self),
Form::Setup::Pages::NeedsType.new(nil, nil, self),

Loading…
Cancel
Save