class DSMediaLibrary::Engine

Public Instance Methods

css_class() click to toggle source
# File lib/ds_media_library/engine.rb, line 21
def css_class
  "dsml-media-link"
end
type_name() click to toggle source
# File lib/ds_media_library/engine.rb, line 25
def type_name
  case media_type
  when "i" then "Image"
  when "v" then "Video"
  when "a" then "Audio"
  when "p" then "PDF"
  else "Unknown"
  end
end
updated_on() click to toggle source
# File lib/ds_media_library/engine.rb, line 35
def updated_on
  updated_at.try(:to_date)
end