diff options
author | Azul <azul@leap.se> | 2014-05-20 13:09:59 +0200 |
---|---|---|
committer | Azul <azul@leap.se> | 2014-05-26 12:59:26 +0200 |
commit | c10f9311678ff2183443bc03e153b30d3b68ff74 (patch) | |
tree | a81a236e2e7d0429d45c24efa5592a7233a63ab3 /app/views/errors | |
parent | 467dd712a19d48fc653cfc0e58201e6657d2c1f9 (diff) |
Controller#flash_for instead of FlashResponder
FlashResponder added a flash before responding. However at the point of responding objects have already been saved. So there is no way to test if they were changed.
Now instead we can call
flash_for resource
before
resource.save
and it will add the flash messages only if the resource was actually changed.
Diffstat (limited to 'app/views/errors')
0 files changed, 0 insertions, 0 deletions