Load ActiveSupport JSON support correctly for major Rails versions > 4