gitlab-org--gitlab-foss/app/models/user_agent_detail.rb
2016-08-15 17:20:57 -05:00

9 lines
212 B
Ruby

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