diff options
| author | Teddy Wing | 2017-08-01 20:53:30 +0200 |
|---|---|---|
| committer | Teddy Wing | 2017-08-01 20:53:30 +0200 |
| commit | e6634a6ab5d05a164af8b971b6992f551ab679ef (patch) | |
| tree | 3198b1408ee39d303b31e0a7029dd360b8f50885 /app/controllers/errors_controller.rb | |
| parent | 985f22e3d4c7c503c4f830f00692a1219ade9612 (diff) | |
| download | chouette-core-e6634a6ab5d05a164af8b971b6992f551ab679ef.tar.bz2 | |
Import: Add #symbols_with_indifferent_access
Didn't like the `flat_map` written inline in the `#failing_statuses`
method because it wasn't obvious what it was doing.
Got that from this answer by mr.musicman on Stack Overflow:
https://stackoverflow.com/questions/21816139/is-there-something-like-with-indifferent-access-for-arrays-usable-for-include/42723778#42723778
(thank you) that describes how to make an array that responds to
`#include?` for both symbols and string versions of those symbols.
Extract that logic into its own method. Leaving it in `Import` for now
because I only need it here and I didn't want to bother putting it in
another module.
Refs #3509, #3511
Diffstat (limited to 'app/controllers/errors_controller.rb')
0 files changed, 0 insertions, 0 deletions
