Class: DeedImage
- Inherits:
-
ApplicationRecord
- Object
- ActiveRecord::Base
- ApplicationRecord
- DeedImage
- Includes:
- Checkable, HasUuid, NestedPriority
- Defined in:
- app/models/deed_image.rb
Overview
Image for deed gallery
Attributes:
caption [String], optional
created_at [DateTime]
data [JSON]
description [Text], optional
image [SimpleImageUploader]
priority [Integer]
updated_at [DateTime]
uuid [UUID]
Constant Summary collapse
- CAPTION_LIMIT =
100
- DESCRIPTION_LIMIT =
32_767
Class Method Summary collapse
Class Method Details
.siblings(entity) ⇒ Object
30 31 32 |
# File 'app/models/deed_image.rb', line 30 def self.siblings(entity) where(deed: entity&.deed) end |