about summary refs log tree commit diff stats
path: root/app/models/link.rb
blob: 81ffa2bc856e0c244a3033f7053b95f8479c5b50 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
class Link < ApplicationRecord
  include Recordable

  acts_as_taggable

  validates :title, :url, presence: true

  def path
    url
  end

  def taggable
    self
  end
end