I have just released v1.18.8 of the
ocean-rails gem. Internally, the gem is now an engine, which
allows us to serve the /alive controller, the error controller, the application helper and various initializers from the gem rather than by installing source templates via the app generator.
This reduces clutter, makes the code shorter and easier to understand, and allows us to DRY up the code in general as boilerplate code can be eliminated.
You should upgrade to the latest version as soon as possible. When you do so, you can remove the following:
- The ErrorController
- The AliveController (there will be a way to specify added behaviour soon, e.g. to check that the DB is available)
- The ApplicationHelper
- The following from config/initializers:
- api_constants.rb
- ocean_constants.rb
- zeromq_logger.rb
- The /alive routing line from config/routes.rb
- specs/controllers/alive_spec.rb
- specs/requests/alive_spec.rb
- specs/routing/alive_spec.rb
All core services, webserver apps, and generators have been updated accordingly.