```ruby
module LegalPages
  class Engine < ::Rails::Engine
    isolate_namespace LegalPages

    config.to_prepare do
      ApplicationController.helper(LegalPages::ApplicationHelper)
    end
  end
end
```

Add setup code to evaluate app's initializer
user
```ruby
module LegalPages
  class Engine < ::Rails::Engine
    isolate_namespace LegalPages

    config.to_prepare do
      ApplicationController.helper(LegalPages::ApplicationHelper)
    end

    def self.setup(&block)
      yield self
    end
  end
end
```
assistant