gitlab-org--gitlab-foss/app/models/user_agent_detail.rb

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

12 lines
288 B
Ruby
Raw Normal View History

# frozen_string_literal: true
class UserAgentDetail < ApplicationRecord
belongs_to :subject, polymorphic: true # rubocop:disable Cop/PolymorphicAssociations
2016-08-09 13:43:47 -04:00
validates :user_agent, :ip_address, :subject_id, :subject_type, presence: true
def submittable?
2016-08-09 13:43:47 -04:00
!submitted?
end
end