kaminari--kaminari/lib/generators
Jim Ryan f228dbfdb2 Pass ActiveSupport::JSON.decode a string and not an IO when interfacing with GitHub API
In older versions (< 4.1) of ActiveSupport, this worked because
ActiveSupport used MultiJSON, which would invoke #read if it
responded to it (https://github.com/intridea/multi_json/blob/v1.8.4/lib/multi_json/adapters/json_common.rb#L9).
However, newer versions of ActiveSupport, starting in 4.1, use
ruby's standard JSON gem (ce4456fde6),
which expects a String. Reading the IO that #open returns
to us and passing the resulting String to JSON.decode ensures
compatibility with all versions of ActiveSupport.
2014-03-04 13:28:49 -05:00
..
kaminari Pass ActiveSupport::JSON.decode a string and not an IO when interfacing with GitHub API 2014-03-04 13:28:49 -05:00