diff options
author | Azul <azul@leap.se> | 2014-07-09 22:02:54 +0200 |
---|---|---|
committer | Azul <azul@leap.se> | 2014-07-09 22:02:54 +0200 |
commit | ace262b61703318d377752c863c48ac3f880f7e6 (patch) | |
tree | e055a2ee9f01cc9187c5e498060153355c1bd7d2 /engines | |
parent | 9d83092405745f6d1b07a57fd8d2aa8e9bffd9fa (diff) |
only use user ticket(s) path for real users
Diffstat (limited to 'engines')
-rw-r--r-- | engines/support/app/helpers/auto_tickets_path_helper.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/support/app/helpers/auto_tickets_path_helper.rb b/engines/support/app/helpers/auto_tickets_path_helper.rb index c26aac7..bc98a0a 100644 --- a/engines/support/app/helpers/auto_tickets_path_helper.rb +++ b/engines/support/app/helpers/auto_tickets_path_helper.rb @@ -15,7 +15,7 @@ module AutoTicketsPathHelper def auto_tickets_path(options={}) return unless options.class == Hash options = ticket_view_options.merge options - if @user + if @user.is_a? User user_tickets_path(@user, options) else tickets_path(options) @@ -25,7 +25,7 @@ module AutoTicketsPathHelper def auto_ticket_path(ticket, options={}) return unless ticket.persisted? options = ticket_view_options.merge options - if @user + if @user.is_a? User user_ticket_path(@user, ticket, options) else ticket_path(ticket, options) |