Module: ActiveRecord::Acts::Asset::InstanceMethods

Defined in:
lib/acts_as_asset.rb

Instance Method Summary collapse

Instance Method Details

#iconObject



21
22
23
# File 'lib/acts_as_asset.rb', line 21

def icon
  "/images/#{media_type}.png"
end

#media_typeObject



18
19
20
# File 'lib/acts_as_asset.rb', line 18

def media_type
  "generic"
end

#nameObject



15
16
17
# File 'lib/acts_as_asset.rb', line 15

def name
  asset.name
end