Closed wwahammy closed 1 year ago
@wwahammy Nice catch. How did you find this?
@wwahammy Nice catch. How did you find this?
I was curious how the JSON output code worked because I needed something like it for a non-React on Rails project. I just noticed it when I got there.
@wwahammy thank you for your contribution.
Summary
I noticed that JsonOutput.escape had a workaround for Rails < 4.1.1. Since the minimum supported Rails version for the gem is greater than that, it doesn't seem like this needs to be there.
Addititionally, I removed the
Utils.rails_version_less_than_4_1_1
method since that was the only place it was usedPull Request checklist
Other Information
N/A
This change is