From c650bee03937bd0e741e701f1fe0bfe5cf8e040e Mon Sep 17 00:00:00 2001 From: Kelly Rauchenberger Date: Sun, 12 Aug 2018 07:10:16 -0400 Subject: Add link entry type --- app/models/link.rb | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 app/models/link.rb (limited to 'app/models') diff --git a/app/models/link.rb b/app/models/link.rb new file mode 100644 index 0000000..81ffa2b --- /dev/null +++ b/app/models/link.rb @@ -0,0 +1,15 @@ +class Link < ApplicationRecord + include Recordable + + acts_as_taggable + + validates :title, :url, presence: true + + def path + url + end + + def taggable + self + end +end -- cgit 1.4.1