Class: AssetAttachment
- Inherits:
-
ActiveRecord::Base
- Object
- ActiveRecord::Base
- AssetAttachment
- Defined in:
- app/models/asset_attachment.rb
Instance Method Summary collapse
- #gallery ⇒ Object
-
#gallery? ⇒ Boolean
Is the asset_attachment attached to a gallery?.
Instance Method Details
#gallery ⇒ Object
14 15 16 |
# File 'app/models/asset_attachment.rb', line 14 def gallery assetable end |
#gallery? ⇒ Boolean
Is the asset_attachment attached to a gallery?
10 11 12 |
# File 'app/models/asset_attachment.rb', line 10 def gallery? assetable_type.downcase == "gallery" end |