Initial commit
This commit is contained in:
6
app/models/main_photo.rb
Normal file
6
app/models/main_photo.rb
Normal file
@@ -0,0 +1,6 @@
|
||||
# A class that allows a single item from a collection of attachments to function as a single attachment
|
||||
class MainPhoto < SimpleDelegator
|
||||
def attached?
|
||||
__getobj__.present?
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user