app/controllers/overlay/github_controller.rb in overlay-0.0.9 vs app/controllers/overlay/github_controller.rb in overlay-1.0
- old
+ new
@@ -1,18 +1,19 @@
require_dependency "overlay/application_controller"
module Overlay
class GithubController < ApplicationController
def update
+ render nothing: true
+
Overlay.configuration.repositories.each do |repo_config|
next unless repo_config.class == GithubRepo
branch = repo_config[:branch] || 'master'
if (params[:repository] && params[:ref])
if (params[:repository][:name] == repo_config[:repo]) && (params[:ref] == "refs/heads/#{branch}")
- Overlay::Github.process_overlays
+ Overlay::GithubJob.new.async.perform repo_config
end
end
end
- render :inline => github_update_url
end
end
end