Method: Photo#name
- Defined in:
- lib/photo.rb
#name ⇒ Object
20 21 22 23 24 |
# File 'lib/photo.rb', line 20 def name return self[:name] if self[:name] update_attribute(:name, self.photo.to_s.split('/').last.split('?').first) name end |