Welcome to mirror list, hosted at ThFree Co, Russian Federation.

user_agent_detail.rb « models « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: e2b2e7f1df9d0afda6a9666ae13c482ea32a29a0 (plain)
1
2
3
4
5
6
7
8
9
10
11
# frozen_string_literal: true

class UserAgentDetail < ActiveRecord::Base
  belongs_to :subject, polymorphic: true # rubocop:disable Cop/PolymorphicAssociations

  validates :user_agent, :ip_address, :subject_id, :subject_type, presence: true

  def submittable?
    !submitted?
  end
end