Skip to content

Commit

Permalink
Add missing require to section_factory.rb
Browse files Browse the repository at this point in the history
This avoids the following error when trying to view a Manual in
development:

    uninitialized constant SectionFactory::ChangeNoteValidator

This is similar to the problem we saw in
01e4ab5. As noted in that commit it
doesn't seem to be possible to write a test to protect us from these
sort of problems.
  • Loading branch information
chrisroos committed Mar 22, 2017
1 parent 53b5af2 commit eea94ce
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions app/lib/section_factory.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
require 'validators/change_note_validator'
require 'validators/section_validator'

class SectionFactory
def initialize(manual)
@manual = manual
Expand Down

0 comments on commit eea94ce

Please sign in to comment.