Sha256: ce91579febaa0f6ad2576f0cff1de5420c598766ca19b02b8444ecf0ce0b6df5
Contents?: true
Size: 455 Bytes
Versions: 10
Compression:
Stored size: 455 Bytes
Contents
# frozen_string_literal: true module Decidim module Core module HasHastaggableInputFilter def self.included(child_class) child_class.argument :hashtag, type: String, description: "List result having this hashtag", required: false, prepare: ->(hashtag, _ctx) { "##{hashtag.sub(/^#/, "")}" } end end end end
Version data entries
10 entries across 10 versions & 1 rubygems