Module: Decidim::Core::HasHastaggableInputFilter
- Defined in:
- decidim-core/lib/decidim/api/input_filters/has_hastaggable_input_filter.rb
Class Method Summary collapse
Class Method Details
.included(child_class) ⇒ Object
6 7 8 9 10 11 12 |
# File 'decidim-core/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 |