BigW Consortium Gitlab

user_agent_detail.rb 258 Bytes
Newer Older
1
class UserAgentDetail < ActiveRecord::Base
2
  belongs_to :subject, polymorphic: true # rubocop:disable Cop/PolymorphicAssociations
3

4
  validates :user_agent, :ip_address, :subject_id, :subject_type, presence: true
5 6

  def submittable?
7
    !submitted?
8 9
  end
end