Sha256: 2a129b70368e5070efaf922663bfc643970cbc3a883f46066763cdb764c3408d

Contents?: true

Size: 550 Bytes

Versions: 10

Compression:

Stored size: 550 Bytes

Contents

# frozen_string_literal: true

module Decidim
  module Core
    module HasPublishableInputSort
      def self.included(child_class)
        child_class.argument :published_at, String, "Sort by date of publication, valid values are ASC or DESC", required: false
        # child_class.argument :created_at, String, "Sort by date of creation, valid values are ASC or DESC", required: false
        # child_class.argument :updated_at, String, "Sort by date of last modification, valid values are ASC or DESC", required: false
      end
    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
decidim-core-0.23.6 app/types/decidim/core/has_publishable_input_sort.rb
decidim-core-0.23.5 app/types/decidim/core/has_publishable_input_sort.rb
decidim-core-0.23.4 app/types/decidim/core/has_publishable_input_sort.rb
decidim-core-0.23.3 app/types/decidim/core/has_publishable_input_sort.rb
decidim-core-0.23.2 app/types/decidim/core/has_publishable_input_sort.rb
decidim-core-0.23.1 app/types/decidim/core/has_publishable_input_sort.rb
decidim-core-0.23.1.rc1 app/types/decidim/core/has_publishable_input_sort.rb
decidim-core-0.23.0 app/types/decidim/core/has_publishable_input_sort.rb
decidim-core-0.22.0 app/types/decidim/core/has_publishable_input_sort.rb
decidim-core-0.21.0 app/types/decidim/core/has_publishable_input_sort.rb