about summary refs log tree commit diff stats
path: root/app/models/entry.rb
diff options
context:
space:
mode:
authorKelly Rauchenberger <fefferburbia@gmail.com>2018-07-02 18:03:37 -0400
committerKelly Rauchenberger <fefferburbia@gmail.com>2018-07-03 14:01:41 -0400
commit49b11f2864f75bcfb8d0d01439939ed68aa90b8f (patch)
treec91d0976e9cb54562aa2c19f9648235d74f14cbf /app/models/entry.rb
parentcb01d13034ad41a29533b623cbbf7c23b37a231c (diff)
downloadthoughts-49b11f2864f75bcfb8d0d01439939ed68aa90b8f.tar.gz
thoughts-49b11f2864f75bcfb8d0d01439939ed68aa90b8f.tar.bz2
thoughts-49b11f2864f75bcfb8d0d01439939ed68aa90b8f.zip
Collapsed Entry -> Blog single-table inheritance to Blog
Diffstat (limited to 'app/models/entry.rb')
-rw-r--r--app/models/entry.rb11
1 files changed, 0 insertions, 11 deletions
diff --git a/app/models/entry.rb b/app/models/entry.rb deleted file mode 100644 index 87fd46d..0000000 --- a/app/models/entry.rb +++ /dev/null
@@ -1,11 +0,0 @@
1class Entry < ApplicationRecord
2 has_many :records, as: :recordable, inverse_of: :recordable
3
4 validates :slug, presence: true, format: /\A[-a-z0-9]+\z/
5
6 accepts_nested_attributes_for :records, allow_destroy: true
7
8 def path
9 "/says/#{slug}"
10 end
11end