module Decidim::Core::HasHastaggableInputFilter

Public Class Methods

included(child_class) click to toggle source
# File lib/decidim/api/input_filters/has_hastaggable_input_filter.rb, line 6
def self.included(child_class)
  child_class.argument :hashtag,
                       type: GraphQL::Types::String,
                       description: "List result having this hashtag",
                       required: false,
                       prepare: ->(hashtag, _ctx) { "##{hashtag.sub(/^#/, "")}" }
end