Sha256: e2830e687218269de1c976c872c44101bb66b6c0eb2cfbaad42d88c1aa700a67
Contents?: true
Size: 537 Bytes
Versions: 1
Compression:
Stored size: 537 Bytes
Contents
module ActsAsMonitor module Helper def monitor_tag(object) raise ActsAsMonitor::MissingMethod unless object.respond_to?(:status_flag) icon = I18n.t(object.status_flag, :scope => "acts_as_monitor.icons", :default => "acts_as_monitor_#{object.status_flag.to_s}.png") image_tag icon, :alt => I18n.t(:alt_image, :scope => "acts_as_monitor.icons", :default => "Click to view details") end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
acts_as_monitor-0.0.2 | app/helpers/monitor_helper.rb |