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

Version Path
locomotive_cms-2.0.0.rc12 app/helpers/locomotive/content_entries_helper.rb
locomotive_cms-2.0.0.rc11 app/helpers/locomotive/content_entries_helper.rb
locomotive_cms-2.0.0.rc10 app/helpers/locomotive/content_entries_helper.rb
locomotive_cms-2.0.0.rc9 app/helpers/locomotive/content_entries_helper.rb
locomotive_cms-2.0.0.rc8 app/helpers/locomotive/content_entries_helper.rb
locomotive_cms-2.0.0.rc7 app/helpers/locomotive/content_entries_helper.rb
locomotive_cms-2.0.0.rc6 app/helpers/locomotive/content_entries_helper.rb
locomotive_cms-2.0.0.rc5 app/helpers/locomotive/content_entries_helper.rb
locomotive_cms-2.0.0.rc4 app/helpers/locomotive/content_entries_helper.rb
locomotive_cms-2.0.0.rc2 app/helpers/locomotive/content_entries_helper.rb
locomotive_cms-2.0.0.rc1 app/helpers/locomotive/content_entries_helper.rb