Sha256: 1d46058549c475958179e11f069809e73b5caa17beb2b9aea0f14b8ece984fe6
Contents?: true
Size: 344 Bytes
Versions: 78
Compression:
Stored size: 344 Bytes
Contents
# frozen_string_literal: true module Decidim # A GraphQL resolver to handle `hashtags' class HashtagsResolver def initialize(organization, term) @organization = organization @term = term end def hashtags Decidim::Hashtag.where(organization: @organization).where("name like ?", "#{@term}%") end end end
Version data entries
78 entries across 78 versions & 1 rubygems