diff options
Diffstat (limited to 'app/models')
-rw-r--r-- | app/models/link.rb | 15 |
1 files changed, 15 insertions, 0 deletions
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 @@ | |||
1 | class Link < ApplicationRecord | ||
2 | include Recordable | ||
3 | |||
4 | acts_as_taggable | ||
5 | |||
6 | validates :title, :url, presence: true | ||
7 | |||
8 | def path | ||
9 | url | ||
10 | end | ||
11 | |||
12 | def taggable | ||
13 | self | ||
14 | end | ||
15 | end | ||