Class: Ems::Asset

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

Instance Method Summary collapse

Instance Method Details

#altObject

virtual alt text accessor - returns the title of the image otherwise the path



15
16
17
18
# File 'app/models/ems/asset.rb', line 15

def alt
  alt = self.title
  alt ||= self.image.url
end