Use respond_to { |format| format.any } to reduce duplication
Merge pull request #204 from mmozuras/refactor_to_use_format_any

Refactor to use format any