diff options
Diffstat (limited to 'app/models/user_agent_detail.rb')
-rw-r--r-- | app/models/user_agent_detail.rb | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/app/models/user_agent_detail.rb b/app/models/user_agent_detail.rb new file mode 100644 index 00000000000..0949c6ef083 --- /dev/null +++ b/app/models/user_agent_detail.rb @@ -0,0 +1,9 @@ +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 |