Commit 810f5443fdda0a31f2e24d11ae672355d05bc75a

Authored by Cyril Mougel
2 parents 231ece23 b759cc24
Exists in master and in 1 other branch production

Merge pull request #466 from tamaloa/master

NameError: uninitialized constant due class creation dependend on loaded gems
app/views/problems/_issue_tracker_links.html.haml
@@ -9,7 +9,7 @@ @@ -9,7 +9,7 @@
9 - if @app.github_repo? 9 - if @app.github_repo?
10 - if current_user.can_create_github_issues? 10 - if current_user.can_create_github_issues?
11 %span= link_to 'create issue', create_issue_app_problem_path(@app, @problem, :tracker => 'user_github'), :method => :post, :class => "github_create create-issue" 11 %span= link_to 'create issue', create_issue_app_problem_path(@app, @problem, :tracker => 'user_github'), :method => :post, :class => "github_create create-issue"
12 - - elsif @app.issue_tracker_configured? && @app.issue_tracker.is_a?(GithubIssuesTracker) 12 + - elsif @app.issue_tracker_configured? && @app.issue_tracker.label.eql?('github')
13 %span= link_to 'create issue', create_issue_app_problem_path(@app, @problem), :method => :post, :class => "github_create create-issue" 13 %span= link_to 'create issue', create_issue_app_problem_path(@app, @problem), :method => :post, :class => "github_create create-issue"
14 - - if @app.issue_tracker_configured? && !@app.issue_tracker.is_a?(GithubIssuesTracker) 14 + - if @app.issue_tracker_configured? && !@app.issue_tracker.label.eql?('github')
15 %span= link_to 'create issue', create_issue_app_problem_path(@app, @problem), :method => :post, :class => "#{@app.issue_tracker.label}_create create-issue" 15 %span= link_to 'create issue', create_issue_app_problem_path(@app, @problem), :method => :post, :class => "#{@app.issue_tracker.label}_create create-issue"