Class: AssetAttachment

Inherits:
ActiveRecord::Base
  • Object
show all
Defined in:
app/models/asset_attachment.rb

Instance Method Summary collapse

Instance Method Details



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?

Returns:

  • (Boolean)


10
11
12
# File 'app/models/asset_attachment.rb', line 10

def gallery?
  assetable_type.downcase == "gallery"
end