Sha256: 23cae18267191c38fc425b9cd7faa8f0382a15f6aecfb0eecd3dd85ea6543cb0

Contents?: true

Size: 415 Bytes

Versions: 9

Compression:

Stored size: 415 Bytes

Contents

# frozen_string_literal: true

module Decidim
  module Core
    module HasTimestampInputSort
      def self.included(child_class)
        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

9 entries across 9 versions & 1 rubygems

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