Sha256: 1c28c916d24c2c238ba3ff474956998a7073a816cb015c1dbd5b56f973c3ca3f
Contents?: true
Size: 471 Bytes
Versions: 50
Compression:
Stored size: 471 Bytes
Contents
# frozen_string_literal: true module Decidim module Core module HasHastaggableInputFilter 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 end end end
Version data entries
50 entries across 50 versions & 1 rubygems