Skip to content

Commit

Permalink
Merge pull request #912 from jvsoares/master
Browse files Browse the repository at this point in the history
Updated the view generator to include the proper require statement
  • Loading branch information
yuki24 committed Aug 25, 2017
2 parents 2d22392 + e59f649 commit 6f338aa
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions kaminari-core/lib/generators/kaminari/views_generator.rb
Expand Up @@ -110,6 +110,8 @@ def templates_for(template_engine) #:nodoc:
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']
Expand Down

0 comments on commit 6f338aa

Please sign in to comment.