asd

Ruby code posted
created at 26 Oct 15:20, updated at 24 Nov 08:49

Edit | Back
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
require 'helpdesk'

::Helpdesk.setup do |config|
  # Class that represents the user/admin
  config.user_class = "User"

  # Method usign to display information about user for users
  config.display_user = "name"

  # Method usign to display information about user for admins (name+id?)
  config.display_user_uniq_info = "email"

  # Require User to be present in order to access Helpdesk
  config.require_user = true

  # Base application sign in route name
  config.sign_in_url = 'new_user_session_path'

  # Helpdesk email for notification
  config.email = 'helpdesk@example.com'

  # Send confirmation emails
  config.send_confirmation_emails = true

  # Site name in email footer
  config.site_name = "Example Helpdesk Team"

  # Site address in email footer
  config.site_address = "www.example.com"

  # Helpdesk title
  config.helpdesk_name = "Example Helpdesk"

  # Helpdesk root controller for users: faqs or tickets
  config.root_controller = 'faqs'

  # Helpdesk user top menu item
  # possible options= ['app_root','helpdesk_root','tickets','faqs','subscribers','search','user','language']
  config.menu_items = ['app_root','helpdesk_root','tickets','faqs','subscribers','search','user','language']

end
1.23 KB in 2 ms with coderay