Future features commented out
This commit is contained in:
parent
13d3517935
commit
cfe6790179
1 changed files with 11 additions and 10 deletions
|
|
@ -57,13 +57,14 @@ class Screenshot < ApplicationRecord
|
|||
end
|
||||
end
|
||||
|
||||
def uploader
|
||||
if self.user
|
||||
self.user.name
|
||||
else
|
||||
'Anonymous'
|
||||
end
|
||||
end
|
||||
# Future use…
|
||||
# def uploader
|
||||
# if self.user
|
||||
# self.user.name
|
||||
# else
|
||||
# 'Anonymous'
|
||||
# end
|
||||
# end
|
||||
|
||||
# Return Debshots 1.x path to allow migration of images into Paperclip filesystem schema
|
||||
# def image_url(size)
|
||||
|
|
@ -110,9 +111,9 @@ class Screenshot < ApplicationRecord
|
|||
self.order(updated_at: :desc).where(approved: true).first
|
||||
end
|
||||
|
||||
def self.approved
|
||||
self.find_by(approved: true)
|
||||
end
|
||||
# def self.approved
|
||||
# self.find_by(approved: true)
|
||||
# end
|
||||
|
||||
# Check whether the user has administrative permissions
|
||||
def can_admin?
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue