summaryrefslogtreecommitdiff
path: root/app/models/user_agent_detail.rb
blob: fea1fce3c8d3423a8458fd1dad4c4048a47d5c8c (plain)
1
2
3
4
5
6
7
8
9
10
11
# frozen_string_literal: true

class UserAgentDetail < ApplicationRecord
  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