BigW Consortium Gitlab

user_agent_detail.rb 212 Bytes
Newer Older
1 2 3
class UserAgentDetail < ActiveRecord::Base
  belongs_to :subject, polymorphic: true

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

  def submittable?
7
    !submitted?
8 9
  end
end