helpdesk 0.0.14 → 0.0.20

Sign up to get free protection for your applications and to get access to all the features.
Files changed (50) hide show
  1. checksums.yaml +4 -4
  2. data/app/controllers/helpdesk/admin/base_controller.rb +1 -1
  3. data/app/controllers/helpdesk/admin/faqs_controller.rb +7 -2
  4. data/app/controllers/helpdesk/admin/subscribers_controller.rb +8 -2
  5. data/app/controllers/helpdesk/admin/ticket_types_controller.rb +9 -3
  6. data/app/controllers/helpdesk/admin/tickets_controller.rb +10 -3
  7. data/app/controllers/helpdesk/application_controller.rb +2 -11
  8. data/app/controllers/helpdesk/dashboard_controller.rb +1 -1
  9. data/app/controllers/helpdesk/subscribers_controller.rb +8 -31
  10. data/app/controllers/helpdesk/tickets_controller.rb +14 -9
  11. data/app/helpers/helpdesk/admin/tickets_helper.rb +9 -0
  12. data/app/helpers/helpdesk/tickets_helper.rb +3 -0
  13. data/app/mailers/helpdesk/notifications_mailer.rb +2 -1
  14. data/app/models/helpdesk/comment.rb +2 -3
  15. data/app/models/helpdesk/faq.rb +1 -1
  16. data/app/models/helpdesk/ticket.rb +19 -23
  17. data/app/models/helpdesk/ticket_type.rb +4 -4
  18. data/app/views/helpdesk/admin/tickets/_form.html.haml +2 -2
  19. data/app/views/helpdesk/admin/tickets/_ticket.html.haml +2 -1
  20. data/app/views/helpdesk/admin/tickets/show.html.haml +2 -2
  21. data/app/views/helpdesk/faqs/index.html.haml +1 -1
  22. data/app/views/helpdesk/notifications_mailer/comment_by_helpdesk_confirmation.html.haml +15 -0
  23. data/app/views/helpdesk/notifications_mailer/comment_by_helpdesk_notification.html.haml +19 -0
  24. data/app/views/helpdesk/notifications_mailer/comment_by_requester_confirmation.html.haml +16 -0
  25. data/app/views/helpdesk/notifications_mailer/comment_by_requester_notification.html.haml +27 -0
  26. data/app/views/helpdesk/notifications_mailer/ticket_created_confirmation.html.haml +16 -0
  27. data/app/views/helpdesk/notifications_mailer/ticket_created_notification.html.haml +21 -0
  28. data/app/views/helpdesk/tickets/_form.html.haml +3 -3
  29. data/app/views/layouts/helpdesk/_topmenu.html.haml +16 -14
  30. data/app/views/layouts/helpdesk/_topuser.html.haml +13 -0
  31. data/app/views/layouts/mailer_layout.html.haml +20 -0
  32. data/config/initializers/globalize.rb +4 -4
  33. data/config/locales/helpdesk.en.yml +34 -4
  34. data/config/locales/helpdesk.pl.yml +38 -0
  35. data/config/routes.rb +1 -1
  36. data/db/migrate/20130521105605_create_helpdesk_ticket_types.rb +1 -0
  37. data/lib/generators/helpdesk/install_generator.rb +6 -7
  38. data/lib/generators/helpdesk/templates/README +14 -6
  39. data/lib/generators/helpdesk/templates/helpdesk.rb +3 -6
  40. data/lib/helpdesk.rb +0 -2
  41. data/lib/helpdesk/engine.rb +3 -1
  42. data/lib/helpdesk/version.rb +1 -1
  43. metadata +40 -26
  44. data/app/mailers/helpdesk/comment_by_requester_confirmation +0 -38
  45. data/app/views/helpdesk/notifications_mailer/comment_by_helpdesk_confirmation.pl.html.haml +0 -32
  46. data/app/views/helpdesk/notifications_mailer/comment_by_helpdesk_notification.pl.html.haml +0 -33
  47. data/app/views/helpdesk/notifications_mailer/comment_by_requester_confirmation.pl.html.haml +0 -32
  48. data/app/views/helpdesk/notifications_mailer/comment_by_requester_notification.pl.html.haml +0 -42
  49. data/app/views/helpdesk/notifications_mailer/ticket_created_confirmation.pl.html.haml +0 -34
  50. data/app/views/helpdesk/notifications_mailer/ticket_created_notification.pl.html.haml +0 -42
@@ -9,8 +9,8 @@
9
9
  = msg
10
10
  = f.input :requester_id, :collection => (Helpdesk.user_class).all,:label_method=>Helpdesk.display_user_uniq_info.to_sym, input_html: { class: 'chosen-select' }
11
11
  = f.input :subject
12
- = f.input :status, :collection => Helpdesk::Ticket::STATUS_OPTIONS, include_blank: false
13
- = f.input :assignee_id, :collection => User.where('helpdesk_admin = ?', true)
12
+ = f.input :status, :collection => tickets_statuses_for_select, include_blank: false
13
+ = f.input :assignee_id, :collection => helpdesk_admin_collection
14
14
  = f.input :ticket_type_id, :collection => Helpdesk::TicketType.active,include_blank: false
15
15
  - if @ticket.new_record?
16
16
  = f.input :description,input_html:{rows:4}
@@ -10,7 +10,8 @@
10
10
  - if ticket.requester
11
11
  = ticket.requester.send Helpdesk.display_user_uniq_info.to_sym
12
12
  %td{rowspan:2}
13
- = status_label Helpdesk::Ticket::STATUS_BY_KEY[ticket.status.to_sym], Helpdesk::Ticket::STATUS_CLASS_BY_KEY[ticket.status.to_sym]
13
+ = status_label humanize_with_i18n(ticket.status,'helpdesk.tickets.statuses'), Helpdesk::Ticket::STATUS_CLASS_BY_KEY[ticket.status.to_sym]
14
+
14
15
  = ticket.ticket_type.title
15
16
  = auto_link(simple_format(ticket.description), :html => { :target => "_blank" })
16
17
  %tr
@@ -20,8 +20,8 @@
20
20
  - @ticket.errors.full_messages.each do |msg|
21
21
  %li
22
22
  = msg
23
- = f.input :status, :collection => Helpdesk::Ticket::STATUS_OPTIONS, include_blank: false
24
- = f.input :assignee_id, :collection => User.where('helpdesk_admin = ?', true)
23
+ = f.input :status, :collection => tickets_statuses_for_select, include_blank: false
24
+ = f.input :assignee_id, :collection => helpdesk_admin_collection
25
25
 
26
26
 
27
27
  = f.simple_fields_for :comments,@ticket.comments.build do |tickets_form|
@@ -1,7 +1,7 @@
1
1
  %div.content
2
2
  %div.pageContainer
3
3
  %h1
4
- Często zadawane pytania
4
+ = t('helpdesk.faqs.title_s')
5
5
  %ol#faq
6
6
  - @faqs.each do |faq|
7
7
  %li{:id=>"link#{faq.id}"}
@@ -0,0 +1,15 @@
1
+ - content_for :title do
2
+ = t('helpdesk.mailer.comment_by_helpdesk_confirmation.title')
3
+ %p
4
+ = t('helpdesk.mailer.comment_by_helpdesk_confirmation.re_ticket')
5
+ = @comment.ticket.subject
6
+ %p
7
+ = t('helpdesk.mailer.comment_by_helpdesk_confirmation.response_content')
8
+ %br
9
+ = simple_format(@comment.comment)
10
+ %br
11
+ %p
12
+ = t('helpdesk.mailer.ticket_url_title')
13
+ %a{:href=>ticket_url(:locale=>I18n.locale, :id=>@comment.ticket)}<>
14
+ = ticket_url(:locale=>I18n.locale, :id=>@comment.ticket)
15
+ %br
@@ -0,0 +1,19 @@
1
+ - content_for :title do
2
+ = t('helpdesk.mailer.comment_by_helpdesk_notification.title', user: @comment.ticket.requester.send Helpdesk.display_user.to_sym)
3
+ = @comment.ticket.subject
4
+
5
+ %p
6
+ = t('helpdesk.mailer.comment_by_helpdesk_notification.comment_content'_
7
+ %br
8
+ = simple_format(@comment.comment)
9
+ %br
10
+ %p
11
+ = t('helpdesk.mailer.ticket_url_title')
12
+ %a{:href=>ticket_url(:locale=>I18n.locale, :id=>@comment.ticket, :anchor=>"comment#{@comment.id}")}<>
13
+
14
+
15
+
16
+
17
+
18
+
19
+
@@ -0,0 +1,16 @@
1
+ - content_for :title do
2
+ = t('helpdesk.mailer.comment_by_requester_confirmation.title', user: @comment.ticket.requester.send(Helpdesk.display_user.to_sym))
3
+ %p
4
+ = t('helpdesk.mailer.comment_by_requester_confirmation.subject', subject: @comment.ticket.subject)
5
+ %p
6
+ = t('helpdesk.mailer.comment_by_requester_confirmation.comment_content')
7
+ %br
8
+ = simple_format(@comment.comment)
9
+ %br
10
+ %p
11
+ = t('helpdesk.mailer.ticket_url_title')
12
+ %a{:href=>ticket_url(:locale=>I18n.locale, :id=>@comment.ticket)}<>
13
+ = ticket_url(:locale=>I18n.locale, :id=>@comment.ticket)
14
+ %br
15
+ = t('helpdesk.mailer.ticket_created_confirmation.info_time')
16
+
@@ -0,0 +1,27 @@
1
+ - content_for :title do
2
+ = t('helpdesk.mailer.comment_by_requester_notification.title')
3
+ = @comment.ticket.subject
4
+ %p
5
+ = t('helpdesk.mailer.comment_by_requester_notification.comment_content')
6
+ %br
7
+ = simple_format(@comment.comment)
8
+ %br
9
+ %br
10
+ %p
11
+ = t('helpdesk.mailer.ticket_created_notification.requester_info')
12
+ %br
13
+ = @comment.author.send Helpdesk.display_user.to_sym
14
+ %br
15
+ = @comment.author.send Helpdesk.display_user_uniq_info.to_sym
16
+ %br
17
+ %p
18
+ = t('helpdesk.mailer.ticket_url_title')
19
+ %a{:href=>admin_ticket_url(:locale=>I18n.locale, :id=>@comment.ticket)}<>
20
+ = admin_ticket_url(:locale=>I18n.locale, :id=>@comment.ticket)
21
+
22
+
23
+
24
+
25
+
26
+
27
+
@@ -0,0 +1,16 @@
1
+ - content_for :title do
2
+ = t('helpdesk.mailer.ticket_created_confirmation.title', user: @ticket.requester.send(Helpdesk.display_user.to_sym) )
3
+ %p
4
+ = t('helpdesk.mailer.ticket_created_confirmation.subject')
5
+ = @ticket.subject
6
+ %p
7
+ = t('helpdesk.mailer.ticket_created_confirmation.ticket_content')
8
+ %br
9
+ = simple_format(@ticket.description)
10
+ %br
11
+ %p
12
+ = t('helpdesk.mailer.ticket_url_title')
13
+ %a{:href=>ticket_url(:locale=>I18n.locale, :id=>@ticket)}<>
14
+ = ticket_url(:locale=>I18n.locale, :id=>@ticket)
15
+ %br
16
+ = t('helpdesk.mailer.ticket_created_confirmation.info_time')
@@ -0,0 +1,21 @@
1
+ - content_for :title do
2
+ = t('helpdesk.mailer.ticket_created_notification.title')
3
+ = @ticket.ticket_type.title
4
+ %p
5
+ = t('helpdesk.mailer.ticket_created_notification.ticket_content')
6
+ %br
7
+ = simple_format(@ticket.description)
8
+ %br
9
+ %br
10
+ %p
11
+ = t('helpdesk.mailer.ticket_created_notification.requester_info')
12
+ %br
13
+ = @ticket.requester.send Helpdesk.display_user.to_sym
14
+ %br
15
+ = @ticket.requester.send Helpdesk.display_user_uniq_info.to_sym
16
+ %br
17
+ %p
18
+ = t('helpdesk.mailer.ticket_url_title')
19
+ %a{:href=>admin_ticket_url(:locale=>I18n.locale, :id=>@ticket)}<>
20
+ = admin_ticket_url(:locale=>I18n.locale, :id=>@ticket)
21
+
@@ -30,7 +30,7 @@
30
30
  = tickets_form.input :author_id, :as => :hidden, :input_html => { :value => helpdesk_user.id }
31
31
  %hr
32
32
  %div.textRight
33
- %a#feedbackCancel{:class=>"btn white"}
34
- Anuluj
35
- %input{:type => "submit",:value => 'Wyślij', :class=>"btn btn-primary"}
33
+ %a.class.btn.btn-default{href: root_path }
34
+ = t('helpdesk.tickets.cancel')
35
+ %input{:type => "submit",:value => t('helpdesk.tickets.send'), :class=>"btn btn-primary"}
36
36
  %div.clearBoth
@@ -9,18 +9,20 @@
9
9
  =link_to t('helpdesk.name'), admin_root_path, :class=>'navbar-brand', :title => t('helpdesk.name')
10
10
  #bs-navbar-collapse-1.collapse.navbar-collapse.in
11
11
  %ul.nav.navbar-nav
12
- -if helpdesk_admin?
13
- = menu_li t('helpdesk.tickets.title'),admin_tickets_path
14
- / = menu_li t('helpdesk.ticket_types.title'),admin_ticket_types_path
15
- = menu_li t('helpdesk.subscribers.title'),admin_subscribers_path
16
- = menu_li t('helpdesk.faqs.title'),admin_faqs_path
12
+ = menu_li t('helpdesk.tickets.title'),admin_tickets_path
13
+ = menu_li t('helpdesk.ticket_types.title'),admin_ticket_types_path
14
+ = menu_li t('helpdesk.subscribers.title'),admin_subscribers_path
15
+ = menu_li t('helpdesk.faqs.title'),admin_faqs_path
17
16
 
18
- %li.dropdown.user(data-dropdown="dropdown")
19
- = link_to current_user.send(Helpdesk.display_user.to_sym), "#",:class=>"dropdown-toggle"
20
- %ul.dropdown-menu
21
- %li.signout
22
- =link_to 'Wróć do aplikacji',main_app.root_path
23
- =link_to t('users.sign_out'),main_app.destroy_user_session_path, :method => :delete, :class => 'icon exit blue'
24
- -else
25
- =menu_li t('users.sign_in'),new_user_session_path, {:class => "power"}
26
- =menu_li t('users.sign_up'),new_user_registration_path, {:class => "signup"}
17
+ %ul.nav.navbar-nav.navbar-right
18
+ %li.dropdown.user
19
+ = link_to current_user.send(Helpdesk.display_user.to_sym), "#",:class=>"dropdown-toggle",data:{toggle:"dropdown"}
20
+ %ul.dropdown-menu
21
+ %li=link_to 'Home',main_app.root_path
22
+ %li=link_to t('users.sign_out'),main_app.destroy_user_session_path, :method => :delete, :class => 'icon exit blue'
23
+
24
+ %li.dropdown
25
+ = link_to t('helpdesk.lang'),"#",:class=>"dropdown-toggle",data:{toggle:"dropdown"}
26
+ %ul.dropdown-menu
27
+ %li= link_to "English", params.merge({:locale => :en})
28
+ %li= link_to "Polski", params.merge({:locale => :pl})
@@ -12,6 +12,19 @@
12
12
  = menu_li t('helpdesk.tickets.title'),tickets_path
13
13
  = menu_li t('helpdesk.faq'),faqs_path
14
14
 
15
+ %ul.nav.navbar-nav.navbar-right
16
+ %li.dropdown.user
17
+ = link_to current_user.send(Helpdesk.display_user.to_sym), "#",:class=>"dropdown-toggle",data:{toggle:"dropdown"}
18
+ %ul.dropdown-menu
19
+ %li=link_to 'Home',main_app.root_path
20
+ %li=link_to t('users.sign_out'),main_app.destroy_user_session_path, :method => :delete, :class => 'icon exit blue'
21
+
22
+ %li.dropdown
23
+ = link_to t('helpdesk.lang'),"#",:class=>"dropdown-toggle",data:{toggle:"dropdown"}
24
+ %ul.dropdown-menu
25
+ %li= link_to "English", params.merge({:locale => :en})
26
+ %li= link_to "Polski", params.merge({:locale => :pl})
27
+
15
28
 
16
29
 
17
30
 
@@ -0,0 +1,20 @@
1
+ :plain
2
+ <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
3
+ %html
4
+ %head
5
+ %body
6
+ %div{:style=>'margin: 0px; padding: 20px 0px; background-color: #f0f0f0;'}
7
+ %div{:style=>'margin: 0px auto; width: 600px; background-color: #fafafa; padding: 20px; border-radius: 2px; box-shadow: 0px 1px 3px 0px rgba(0, 0, 0, 0.3);'}
8
+ %h2
9
+ =yield :title
10
+ %div
11
+ = yield
12
+ %p
13
+ = t('helpdesk.mailer.footer_nice')
14
+ %br
15
+ = Helpdesk.site_name
16
+ %br
17
+ %a{:href=>'http://'+Helpdesk.site_address}
18
+ = Helpdesk.site_address
19
+ %div{:style=>'padding: 8px 0px; font-size: 12px; font-family: "Helvetica", "Arial", Sans-serif; text-align: justify; border-top: 0px solid #c0c0c0; color: #808080; '}
20
+ = t('helpdesk.mailer.footer_info', url: root_url).html_safe
@@ -1,4 +1,4 @@
1
- Globalize.fallbacks = {
2
- :en => [:en, :pl],
3
- :pl => [:pl, :en],
4
- }
1
+ # Globalize.fallbacks = {
2
+ # :en => [:en, :pl],
3
+ # :pl => [:pl, :en],
4
+ # }
@@ -1,6 +1,7 @@
1
1
  en:
2
2
 
3
3
  helpdesk:
4
+ lang: Language
4
5
  Show: Show
5
6
  edit: Edit
6
7
  Destroy: Delete
@@ -9,7 +10,7 @@ en:
9
10
  tickets:
10
11
  new: New Issue
11
12
  my: My Issue
12
- unassigned: Wnassigned
13
+ unassigned: Unassigned
13
14
  closed: Closed Issues
14
15
  all: All issues
15
16
  title: Issues
@@ -17,12 +18,14 @@ en:
17
18
  assignee_to: Assigned to
18
19
  assign_me: I take it
19
20
  not_assigned: Not assigned
20
- is_now_assigned: "Issue % {subject} has been assigned to you"
21
+ is_now_assigned: "Issue %{subject} has been assigned to you"
21
22
  visible_to_autor: Visible to the author - send an email
22
23
  you_have_no_tickets: "No issues "
23
24
  ticket_closed: Issues closed
24
25
  subject: Subject of
25
- Description: Content
26
+ description: Content
27
+ cancel: cancel
28
+ send: Send
26
29
  ticket: Issue
27
30
  faq: FAQ
28
31
  comments:
@@ -51,6 +54,7 @@ en:
51
54
 
52
55
  faqs:
53
56
  title: FAQ
57
+ title_s: Frequently Asked Questions
54
58
  active: Active Questions
55
59
  inactive: Inactive questions
56
60
  all: All the questions
@@ -60,7 +64,33 @@ en:
60
64
  active: active
61
65
  inactive: inactive
62
66
 
63
-
67
+ mailer:
68
+ comment_by_helpdesk_confirmation:
69
+ title: "Response to the issue was sent"
70
+ re_ticket: "New comment for Issue:"
71
+ response_content: "Content of the comment:"
72
+ comment_by_helpdesk_notification:
73
+ title: "%{user}, new reply received for issue:"
74
+ comment_content: "Content of the comment:"
75
+ comment_by_requester_notification:
76
+ title: "New reply received for issue:"
77
+ comment_content: "Content of the comment:"
78
+ comment_by_requester_confirmation:
79
+ title: "%{user}, thank you for submitting a comment to the Issue"
80
+ subject: "New comment for Issie - %{subject}"
81
+ comment_content: "Content of the comment:"
82
+ ticket_created_confirmation:
83
+ title: "%{user}, thank you for submitting"
84
+ subject: "Your issue subject is:"
85
+ ticket_content: "Content of the issue:"
86
+ info_time: "We appreciate your time, so we will try to respond as quickly as possible."
87
+ ticket_created_notification:
88
+ title: "New Issue was created"
89
+ requester_info: "Author"
90
+ ticket_content: "The content of the issue:"
91
+ ticket_url_title: "At this address you can track the issue:"
92
+ footer_info: "This message has been generated automatically. Do not answer it. If you do not have initiated action to send this message please report it to us <a href=\"%{url}\"> clicking here </a>."
93
+ footer_nice: "Have a nice day"
64
94
 
65
95
  activerecord:
66
96
  models:
@@ -1,6 +1,7 @@
1
1
  pl:
2
2
 
3
3
  helpdesk:
4
+ lang: Język
4
5
  show: Pokaż
5
6
  edit: Edytuj
6
7
  destroy: Usuń
@@ -23,6 +24,17 @@ pl:
23
24
  ticket_closed: Zgłoszenie zamknięte
24
25
  subject: Temat zgłoszenia
25
26
  description: Treść
27
+ cancel: Anuluj
28
+ send: Wyślij
29
+ statuses:
30
+ new: "Nowe"
31
+ open: "Otwarte"
32
+ waiting: "Otwarte: oczekujące"
33
+ solved: "Zamknięte: problem rozwiązany"
34
+ not_fixable: "Zamknięte: nienaprawialne"
35
+ unreachable: "Zamknięte: klient nieosiągalny"
36
+ bug: "Zamknięte: Przeniesione do bug tracker'a"
37
+
26
38
  ticket: Zgłoszenie
27
39
  faq: FAQ
28
40
  comments:
@@ -51,6 +63,7 @@ pl:
51
63
 
52
64
  faqs:
53
65
  title: FAQ
66
+ title_s: Często zadawane pytania
54
67
  active: Aktywne pytania
55
68
  inactive: Nieaktywne pytania
56
69
  all: Wszystkie pytania
@@ -60,6 +73,31 @@ pl:
60
73
  active: aktywne
61
74
  inactive: nieaktywne
62
75
 
76
+ mailer:
77
+ comment_by_helpdesk_confirmation:
78
+ title: "Wysłano odpowiedź do zgłoszenia"
79
+ re_ticket: "Odpowiedź dotyczy zgłoszenia"
80
+ response_content: "Treść odpowiedzi:"
81
+ comment_by_requester_notification:
82
+ title: "Pojawiła się nowa odpowiedź do zgłoszenie:"
83
+ comment_content: "Treść odpowiedzi:"
84
+ comment_by_requester_confirmation:
85
+ title: "%{user}, dziękujemy za przesłanie odpowiedzi do zgłoszenia"
86
+ subject: "Odpowiedź dotyczy Twojego zgłoszenia - %{subject}"
87
+ comment_content: "Treść odpowiedzi:"
88
+ ticket_created_confirmation:
89
+ title: "%{user}, dziękujemy za przesłanie zgłoszenia"
90
+ subject: Temat Twojego zgłoszenia to
91
+ ticket_content: "Treść zgłoszenia:"
92
+ info_time: "Cenimy Twój czas, dlatego staramy się odpowiadać, tak szybko jak to możliwe."
93
+ ticket_created_notification:
94
+ title: "Pojawiło się nowe zgłoszenie:"
95
+ requester_info: "Informacje o zgłaszającym:"
96
+ ticket_content: "Treść zgłoszenia:"
97
+ ticket_url_title: "Pod tym adresem można śledzić zgłoszenie:"
98
+ footer_info: "Ta wiadomość została wygenerowana automatycznie. Nie odpowiadaj na nią. Jeśli nie zainicjowałeś akcji wysyłania tej wiadomości zgłoś to nam <a href=\"%{url}\">klikając tutaj</a>."
99
+ footer_nice: "Życzymy miłego dnia"
100
+
63
101
 
64
102
 
65
103
  activerecord:
@@ -16,7 +16,7 @@ Helpdesk::Engine.routes.draw do
16
16
 
17
17
  resources :faqs, :only => [ :index ]
18
18
  resources :tickets, :except => [ :edit, :destroy ]
19
- root :to => "tickets#index"
19
+ root :to => "faqs#index"
20
20
 
21
21
  end
22
22
  end
@@ -6,6 +6,7 @@ class CreateHelpdeskTicketTypes < ActiveRecord::Migration
6
6
  t.string :tr_class
7
7
  t.timestamps
8
8
  end
9
+
9
10
  Helpdesk::TicketType.create_translation_table! :title => :string
10
11
 
11
12
 
@@ -16,21 +16,20 @@ module Helpdesk
16
16
  copy_file "../../../../config/locales/helpdesk.pl.yml", "config/locales/helpdesk.pl.yml"
17
17
  end
18
18
 
19
- def show_readme
20
- readme "README" if behavior == :invoke
19
+ def run_rake
20
+ rake "helpdesk:install:migrations"
21
+ rake "db:migrate"
21
22
  end
22
23
 
23
-
24
-
25
24
  def add_engine_to_route
26
25
  route "mount Helpdesk::Engine, :at => '/helpdesk'"
27
26
  end
28
27
 
29
- def run_rake
30
- rake "helpdesk:install:migrations"
31
- rake "db:migrate"
28
+ def show_readme
29
+ readme "README" if behavior == :invoke
32
30
  end
33
31
 
32
+
34
33
  end
35
34
  end
36
35
  end