1
0
Fork 0
mirror of https://github.com/kaminari/kaminari.git synced 2022-11-09 13:44:37 -05:00

Merge pull request #912 from jvsoares/master

Updated the view generator to include the proper require statement
This commit is contained in:
Yuki Nishijima 2017-08-26 08:33:16 +09:00 committed by GitHub
commit 6f338aa2d7

View file

@ -110,6 +110,8 @@ BANNER
end
module GitHubApiHelper
require 'open-uri'
def get_files_in_master
master_tree_sha = open('https://api.github.com/repos/amatsuda/kaminari_themes/git/refs/heads/master') do |json|
ActiveSupport::JSON.decode(json.read)['object']['sha']