diff options
author | Azul <azul@leap.se> | 2014-05-20 13:50:32 +0200 |
---|---|---|
committer | Azul <azul@leap.se> | 2014-05-26 12:59:26 +0200 |
commit | 560eb039f4778257559395583e1233d052d44127 (patch) | |
tree | 400ff92e4e4d64a58a57794170923cd83a696f26 /engines/support/app/controllers | |
parent | a337088f4d6d12d1ea26f494f4ca078cff4b4070 (diff) |
flash_for with_errors option displays error messages
Diffstat (limited to 'engines/support/app/controllers')
-rw-r--r-- | engines/support/app/controllers/tickets_controller.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/support/app/controllers/tickets_controller.rb b/engines/support/app/controllers/tickets_controller.rb index 7b6a7a0..9c1a741 100644 --- a/engines/support/app/controllers/tickets_controller.rb +++ b/engines/support/app/controllers/tickets_controller.rb @@ -62,7 +62,7 @@ class TicketsController < ApplicationController @ticket.comments.last.private = false unless admin? end - flash_for @ticket + flash_for @ticket, with_errors: true @ticket.save respond_with @ticket, location: redirection_path end |