blob: 2d05fdd3e54d8f21480f061d7b0a91a98d085cdd (
plain)
1
2
3
4
5
6
7
8
9
|
class UserAgentDetail < ActiveRecord::Base
belongs_to :subject, polymorphic: true # rubocop:disable Cop/PolymorphicAssociations
validates :user_agent, :ip_address, :subject_id, :subject_type, presence: true
def submittable?
!submitted?
end
end
|