trabajo-afectivo/config/application.rb

102 lines
3 KiB
Ruby
Raw Normal View History

require_relative 'boot'
2012-04-10 13:31:21 +00:00
require 'rails/all'
require_relative 'issue_2656_workaround_for_rails_issue_33600'
2012-04-10 13:31:21 +00:00
# DO NOT REMOVE THIS LINE - see issue #2037
Bundler.setup
2015-09-25 14:37:55 +00:00
# Require the gems listed in Gemfile, including any gems
# you've limited to :test, :development, or :production.
Bundler.require(*Rails.groups)
2012-04-10 13:31:21 +00:00
module Zammad
class Application < Rails::Application
# Initialize configuration defaults for originally generated Rails version.
config.load_defaults 5.2
2012-04-10 13:31:21 +00:00
# Settings in config/environments/* take precedence over those specified here.
# Application configuration should go into files in config/initializers
# -- all .rb files in that directory are automatically loaded.
# Custom directories with classes and modules you want to be autoloadable.
2017-11-23 08:09:44 +00:00
config.autoload_paths += %W[#{config.root}/lib]
config.eager_load_paths += %W[#{config.root}/lib]
2012-04-10 13:31:21 +00:00
# Activate observers that should always be running.
# config.active_record.observers = :cacher, :garbage_collector, :forum_observer
config.active_record.observers =
2013-07-26 21:45:16 +00:00
'observer::_session',
2016-04-15 21:56:10 +00:00
'observer::_transaction'
config.active_job.queue_adapter = :delayed_job
# Use custom logger to log Thread id next to Process pid
config.log_formatter = ::Logger::Formatter.new
# REST api path
config.api_path = '/api/v1'
2015-09-25 14:37:55 +00:00
# define cache store
2017-11-23 08:09:44 +00:00
config.cache_store = :file_store, Rails.root.join('tmp', "cache_file_store_#{Rails.env}")
2015-09-25 14:37:55 +00:00
# default preferences by permission
config.preferences_default_by_permission = {
'ticket.agent' => {
notification_config: {
matrix: {
create: {
criteria: {
owned_by_me: true,
owned_by_nobody: true,
mentioned: true,
no: false,
},
channel: {
email: true,
online: true,
}
},
update: {
criteria: {
owned_by_me: true,
owned_by_nobody: true,
mentioned: true,
no: false,
},
channel: {
email: true,
online: true,
}
},
reminder_reached: {
criteria: {
owned_by_me: true,
2016-02-08 07:25:27 +00:00
owned_by_nobody: false,
mentioned: false,
no: false,
},
channel: {
email: true,
online: true,
}
},
escalation: {
criteria: {
owned_by_me: true,
2016-02-08 07:25:27 +00:00
owned_by_nobody: false,
mentioned: false,
no: false,
},
channel: {
email: true,
online: true,
}
}
}
}
}
}
2012-04-10 13:31:21 +00:00
end
end