Skip to content

Show Hide WebUI

Yasuhiro Matsumura edited this page Mar 1, 2017 · 1 revision

Introduction

You may not want to display the WebUI provided by OkuribitoRails in the production environment.
Also, under the development environment, you may not want to monitor method calls.

OkuribitoRails allows these functions to be enabled or disabled depending on the environment.

How to configuration

In config/initializers/okuribito.rb, make the following settings.

  • prohibit_webui
    • OkuribitoRails hide web UI in the specified environment.
  • prohibit_observe
    • OkuribitoRails does not monitor method calls in the specified environment.

Example

OkuribitoRails.configure do |config|
  config.setting_path = "config/okuribito.yml"
  config.once_detect = true
  config.prohibit_webui = ["test"]
  config.prohibit_observe = ["test"]
  config.force_eager_load = ["test"]
end
Clone this wiki locally