Class: Shoppy::Brand
- Inherits:
-
ActiveRecord::Base
- Object
- ActiveRecord::Base
- Shoppy::Brand
- Defined in:
- app/models/shoppy/brand.rb
Direct Known Subclasses
Instance Method Summary collapse
-
#brand_image ⇒ Object
Validators.
-
#products ⇒ Object
Relationships.
Instance Method Details
#brand_image ⇒ Object
Validators
12 13 14 15 |
# File 'app/models/shoppy/brand.rb', line 12 :brand_image, presence: true, content_type: { content_type: /\Aimage\/.*\Z/ }, size: { less_than: 1.megabyte } |
#products ⇒ Object
Relationships
4 |
# File 'app/models/shoppy/brand.rb', line 4 has_many :products, dependent: :nullify |