Permalink
Browse files

payload is an instance variable

  • Loading branch information...
1 parent 062f48d commit c3739cd470933f627eef6bddec75cf66ac79cb80 @flyerhzm committed Feb 26, 2014
Showing with 1 addition and 1 deletion.
  1. +1 −1 app/controllers/repositories_controller.rb
@@ -60,7 +60,7 @@ def check_github_authenticate
render text: "not authenticate" and return if params[:token].blank?
@payload = ActiveSupport::JSON.decode(params[:payload])
- @repository = Repository.where(html_url: payload["repository"]["url"]).first
+ @repository = Repository.where(html_url: @payload["repository"]["url"]).first
render text: "not authenticate" and return unless @repository
render text: "not authenticate" and return unless @repository.authentication_token == params["token"]
end

0 comments on commit c3739cd

Please sign in to comment.