Class: Spina::Shop::ProductImage
- Inherits:
-
ApplicationRecord
- Object
- ActiveRecord::Base
- ApplicationRecord
- Spina::Shop::ProductImage
- Defined in:
- app/models/spina/shop/product_image.rb
Instance Method Summary collapse
Instance Method Details
#alt ⇒ Object
14 15 16 |
# File 'app/models/spina/shop/product_image.rb', line 14 def alt alt_description.presence || description end |
#description ⇒ Object
10 11 12 |
# File 'app/models/spina/shop/product_image.rb', line 10 def description product.try(:name) end |