Class: Photo
- Inherits:
-
ActiveRecord::Base
- Object
- ActiveRecord::Base
- Photo
- Includes:
- Positionable
- Defined in:
- app/models/photo.rb
Instance Method Summary collapse
Instance Method Details
#owner ⇒ Object
18 19 20 |
# File 'app/models/photo.rb', line 18 def owner photographable.owner if photographable && photographable.respond_to?(:owner) end |
#to_label ⇒ Object
24 25 26 |
# File 'app/models/photo.rb', line 24 def to_label image_file_name end |