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

10 lines
258 B
Ruby
Raw Normal View History

class UserAgentDetail < ActiveRecord::Base
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