-
Notifications
You must be signed in to change notification settings - Fork 12
Show Hide WebUI
Yasuhiro Matsumura edited this page Mar 1, 2017
·
1 revision
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.
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.
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