Sha256: b0637b02555e97cc3cf870a8e2d0ff079c4fcba7682dee766823131cdfdc0eeb

Contents?: true

Size: 495 Bytes

Versions: 6

Compression:

Stored size: 495 Bytes

Contents

module Locomotive
  module Steam

    class ContentTypeFieldSelectOptionRepository

      include Models::Repository

      attr_accessor :content_type_field

      # Entity mapping
      mapping :content_type_field_select_options, entity: ContentTypeField::SelectOption do
        default_attribute :field, -> (repository) { repository.content_type_field }

        localized_attributes :name
      end

      def all
        query { order_by(position: :asc) }.all
      end

    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
locomotivecms_steam-1.0.0.pre.beta.2 lib/locomotive/steam/repositories/content_type_field_select_option_repository.rb
locomotivecms_steam-1.0.0.pre.beta.1 lib/locomotive/steam/repositories/content_type_field_select_option_repository.rb
locomotivecms_steam-1.0.0.pre.alpha.3 lib/locomotive/steam/repositories/content_type_field_select_option_repository.rb
locomotivecms_steam-1.0.0.pre.alpha.2 lib/locomotive/steam/repositories/content_type_field_select_option_repository.rb
locomotivecms_steam-1.0.0.pre.alpha.1 lib/locomotive/steam/repositories/content_type_field_select_option_repository.rb
locomotivecms_steam-1.0.0.pre.alpha lib/locomotive/steam/repositories/content_type_field_select_option_repository.rb