BigW Consortium Gitlab

user_agent_detail.rb 212 Bytes
class UserAgentDetail < ActiveRecord::Base
  belongs_to :subject, polymorphic: true

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

  def submittable?
    !submitted?
  end
end