Sha256: 1eb323c4b3a9c438811b08d0b1e7990eb24812bf5c242fc8b2791e330b172c19
Contents?: true
Size: 378 Bytes
Versions: 11
Compression:
Stored size: 378 Bytes
Contents
module Locomotive module ContentEntriesHelper def options_for_belongs_to_custom_field(class_name) content_type = Locomotive::ContentType.class_name_to_content_type(class_name, current_site) if content_type content_type.ordered_entries.map { |entry| [entry._label, entry._id] } else [] # unknown content type end end end end
Version data entries
11 entries across 11 versions & 1 rubygems