Sha256: 52fb81180d7389376c0122211f5954953afd17904260733e997f8b44d8e73051
Contents?: true
Size: 580 Bytes
Versions: 33
Compression:
Stored size: 580 Bytes
Contents
<!-- Renders a `separator` separated list of any fields passed in the `fields` attribute that are true (in the Ruby sense). For example, if a forum post had a boolean field `sticky`, this tag can be used to automatically label sticky posts "Sticky". Similarly, you could automatically add an "Administrator" label to the user's home page (this is seen in the default Hobo app). --> <def tag="record-flags" attrs="fields, separator"><%= separator ||= ', ' comma_split(fields).select { |f| this.send(f) }.map { |f| this.class.human_attribute_name(f) }.join(separator) %></def>
Version data entries
33 entries across 33 versions & 1 rubygems