Class: Constraints::JiraEncodedUrlConstrainer

Inherits:
Object
  • Object
show all
Defined in:
lib/constraints/jira_encoded_url_constrainer.rb

Instance Method Summary collapse

Instance Method Details

#matches?(request) ⇒ Boolean

Returns:

  • (Boolean)

5
6
7
# File 'lib/constraints/jira_encoded_url_constrainer.rb', line 5

def matches?(request)
  request.path.starts_with?('/-/jira') || request.params[:project_id].include?(Gitlab::Jira::Dvcs::ENCODED_SLASH)
end