FLOW_REGISTRY_OPTIONS = {show_drafts: true, show_transitions: false}

# Uncomment the following to run smartanswers with the test flows instead of the real ones
#
#FLOW_REGISTRY_OPTIONS[:load_path] = Rails.root.join('test', 'fixtures', 'flows')
#I18n.load_path += Dir[Rails.root.join(*%w{test fixtures flows locales * *.{rb,yml}})]

# This file potentially overwritten on deploy

if Rails.env.production?
  FLOW_REGISTRY_OPTIONS = {}
else
  FLOW_REGISTRY_OPTIONS = {show_drafts: true}
end

# Uncomment the following to run smartanswers with the test flows instead of the real ones
#
#FLOW_REGISTRY_OPTIONS[:load_path] = Rails.root.join('test', 'fixtures', 'flows')
#I18n.load_path += Dir[Rails.root.join(*%w{test fixtures flows locales * *.{rb,yml}})]

Disable drafts by default in RAILS_ENV=production
Disable drafts by default in RAILS_ENV=production

To reduce the chance of a misconfiguration revealing draft content in
production, this changes the default config to not show drafts unless
explicitly overridden.

This removes the `show_transitions: false` option because that's already
the default value for it.
