Class: Photo
- Inherits:
-
ActiveRecord::Base
- Object
- ActiveRecord::Base
- Photo
- Defined in:
- app/models/photo.rb
Constant Summary collapse
- NO_IMAGE_PATH =
"/assets/not_available/medium/not_found.png"
Instance Method Summary collapse
Instance Method Details
#alt ⇒ Object
18 19 20 |
# File 'app/models/photo.rb', line 18 def alt self.photo_file_name.dasherize.titleize.gsub(/\.(jpeg|jpg|gif|png)$/i,'') end |