debian-mirror-gitlab/app/models/user_agent_detail.rb

10 lines
212 B
Ruby
Raw Normal View History

2016-09-13 17:45:13 +05:30
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