Sha256: 2d347bdda5caf2b04be6847f87e2a68a5c8e8e6346aee774d8ac04e95665e5d4
Contents?: true
Size: 544 Bytes
Versions: 40
Compression:
Stored size: 544 Bytes
Contents
- if resource.send(name).present? - label = if options[:label_method].present? - case options[:label_method] - when Proc - options[:label_method].call(resource.send(name)) - else - resource.send(name).try(options[:label_method]) - else - resource.send(name) - link_to = options[:link_to] - case link_to - when Proc = link_to(label, link_to.call(resource)) - when String = link_to(label, link_to) - when Symbol = link_to(label, send(link_to)) - when nil = label
Version data entries
40 entries across 40 versions & 1 rubygems