Updated the view generator to include the proper require statements

This commit is contained in:
Jay Soares 2017-08-25 16:52:34 -05:00
parent 2d22392756
commit e59f64903c
1 changed files with 2 additions and 0 deletions

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']