polishing stories views
This commit is contained in:
@ -5,7 +5,8 @@ class Member < ApplicationRecord
|
||||
:recoverable, :rememberable, :validatable
|
||||
|
||||
mount_uploader :picture, PictureUploader
|
||||
|
||||
has_many :stories
|
||||
|
||||
def admin
|
||||
true
|
||||
end
|
||||
|
@ -1,2 +1,9 @@
|
||||
class Story < ApplicationRecord
|
||||
belongs_to :member
|
||||
|
||||
mount_uploader :picture, PictureUploader
|
||||
|
||||
def name
|
||||
header
|
||||
end
|
||||
end
|
||||
|
Reference in New Issue
Block a user