polishing stories views

This commit is contained in:
2023-01-11 20:52:58 +02:00
parent 23a2254d2e
commit 0055de6c83
14 changed files with 90 additions and 80 deletions

View File

@ -5,7 +5,8 @@ class Member < ApplicationRecord
:recoverable, :rememberable, :validatable
mount_uploader :picture, PictureUploader
has_many :stories
def admin
true
end

View File

@ -1,2 +1,9 @@
class Story < ApplicationRecord
belongs_to :member
mount_uploader :picture, PictureUploader
def name
header
end
end