Module: Locomotive::ContentEntriesHelper
- Defined in:
- app/helpers/locomotive/content_entries_helper.rb
Instance Method Summary collapse
Instance Method Details
#options_for_belongs_to_custom_field(class_name) ⇒ Object
4 5 6 7 8 9 10 11 12 |
# File 'app/helpers/locomotive/content_entries_helper.rb', line 4 def (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(content_type, entry), entry._id] } else [] # unknown content type end end |