summaryrefslogtreecommitdiff
path: root/app/models/user_agent_detail.rb
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