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

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

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

Add setup code to evaluate app's initializer
Add setup code to evaluate app's initializer
