Module: Decidim::Core::HasPublishableInputSort

Included in:
ParticipatorySpaceInputSort
Defined in:
lib/decidim/api/input_sorts/has_publishable_input_sort.rb

Class Method Summary collapse

Class Method Details

.included(child_class) ⇒ Object



6
7
8
9
10
# File 'lib/decidim/api/input_sorts/has_publishable_input_sort.rb', line 6

def self.included(child_class)
  child_class.argument :published_at, GraphQL::Types::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