Sha256: 2fdd53c1729a689dfdcd5a9c74e6d3935e056101c0a621033d8372156f19858d
Contents?: true
Size: 341 Bytes
Versions: 59
Compression:
Stored size: 341 Bytes
Contents
module Workarea module Admin::ChangesetsHelper def changeset_icon(changeset, options = {}) type = changeset.root.model_name.element inline_svg(icon_path(type), options) end private def icon_path(type) Workarea.config.releasable_icons[type.to_sym] || "workarea/admin/icons/#{type}.svg" end end end
Version data entries
59 entries across 59 versions & 1 rubygems