application.rb 3.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. require File.expand_path('../boot', __FILE__)
  2. require 'rails/all'
  3. if defined?(Bundler)
  4. # If you precompile assets before deploying to production, use this line
  5. Bundler.require(*Rails.groups(assets: %w(development test)))
  6. # If you want your assets lazily compiled in production, use this line
  7. # Bundler.require(:default, :assets, Rails.env)
  8. end
  9. module Zammad
  10. class Application < Rails::Application
  11. # Settings in config/environments/* take precedence over those specified here.
  12. # Application configuration should go into files in config/initializers
  13. # -- all .rb files in that directory are automatically loaded.
  14. # Custom directories with classes and modules you want to be autoloadable.
  15. config.autoload_paths += %W(#{config.root}/lib)
  16. # Only load the plugins named here, in the order given (default is alphabetical).
  17. # :all can be used as a placeholder for all plugins not explicitly named.
  18. # config.plugins = [ :exception_notification, :ssl_requirement, :all ]
  19. # Activate observers that should always be running.
  20. # config.active_record.observers = :cacher, :garbage_collector, :forum_observer
  21. config.active_record.observers =
  22. 'observer::_session',
  23. 'observer::_ticket::_close_time',
  24. 'observer::_ticket::_user_ticket_counter',
  25. 'observer::_ticket::_article_changes',
  26. 'observer::_ticket::_article::_fillup_from_general',
  27. 'observer::_ticket::_article::_fillup_from_email',
  28. 'observer::_ticket::_article::_communicate_email',
  29. 'observer::_ticket::_article::_communicate_facebook',
  30. 'observer::_ticket::_article::_communicate_twitter',
  31. 'observer::_ticket::_notification',
  32. 'observer::_ticket::_reset_new_state',
  33. 'observer::_ticket::_escalation_calculation',
  34. 'observer::_ticket::_ref_object_touch',
  35. 'observer::_ticket::_online_notification_seen',
  36. 'observer::_ticket::_stats_reopen',
  37. 'observer::_tag::_ticket_history',
  38. 'observer::_user::_ref_object_touch',
  39. 'observer::_user::_ticket_organization',
  40. 'observer::_user::_geo',
  41. 'observer::_organization::_ref_object_touch'
  42. # The default locale is :en and all translations from config/locales/*.rb,yml are auto loaded.
  43. # config.i18n.load_path += Dir[Rails.root.join('my', 'locales', '*.{rb,yml}').to_s]
  44. # config.i18n.default_locale = :de
  45. # Configure the default encoding used in templates for Ruby 1.9.
  46. config.encoding = 'utf-8'
  47. # Configure sensitive parameters which will be filtered from the log file.
  48. config.filter_parameters += [:password]
  49. # Use SQL instead of Active Record's schema dumper when creating the database.
  50. # This is necessary if your schema can't be completely dumped by the schema dumper,
  51. # like if you have constraints or database-specific column types
  52. # config.active_record.schema_format = :sql
  53. # Enable the asset pipeline
  54. config.assets.enabled = true
  55. # Version of your assets, change this if you want to expire all your assets
  56. config.assets.version = '1.0'
  57. # REST api path
  58. config.api_path = '/api/v1'
  59. end
  60. end