Class: Photo

Inherits:
ActiveRecord::Base
  • Object
show all
Includes:
Positionable
Defined in:
app/models/photo.rb

Instance Method Summary collapse

Instance Method Details

#ownerObject



18
19
20
# File 'app/models/photo.rb', line 18

def owner
  photographable.owner if photographable && photographable.respond_to?(:owner)
end

#to_labelObject



24
25
26
# File 'app/models/photo.rb', line 24

def to_label
  image_file_name
end