kaminari--kaminari/lib/generators/kaminari
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
..
templates add commented out `max_per_page` to the config generator output 2012-09-03 00:37:45 +09:00
config_generator.rb A generator that generates default config file 2011-04-21 16:45:08 +09:00
views_generator.rb Pass ActiveSupport::JSON.decode a string and not an IO when interfacing with GitHub API 2014-03-04 13:28:49 -05:00