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

Version Path
decidim-core-0.29.1 app/resolvers/decidim/hashtags_resolver.rb
decidim-core-0.28.4 app/resolvers/decidim/hashtags_resolver.rb
decidim-core-0.27.9 app/resolvers/decidim/hashtags_resolver.rb
decidim-core-0.29.0 app/resolvers/decidim/hashtags_resolver.rb
decidim-core-0.28.3 app/resolvers/decidim/hashtags_resolver.rb
decidim-core-0.27.8 app/resolvers/decidim/hashtags_resolver.rb
decidim-core-0.29.0.rc4 app/resolvers/decidim/hashtags_resolver.rb
decidim-core-0.29.0.rc3 app/resolvers/decidim/hashtags_resolver.rb
decidim-core-0.29.0.rc2 app/resolvers/decidim/hashtags_resolver.rb
decidim-core-0.29.0.rc1 app/resolvers/decidim/hashtags_resolver.rb
decidim-core-0.28.2 app/resolvers/decidim/hashtags_resolver.rb
decidim-core-0.27.7 app/resolvers/decidim/hashtags_resolver.rb
decidim-core-0.28.1 app/resolvers/decidim/hashtags_resolver.rb
decidim-core-0.27.6 app/resolvers/decidim/hashtags_resolver.rb
decidim-core-0.26.10 app/resolvers/decidim/hashtags_resolver.rb
decidim-core-0.26.9 app/resolvers/decidim/hashtags_resolver.rb
decidim-core-0.28.0 app/resolvers/decidim/hashtags_resolver.rb
decidim-core-0.27.5 app/resolvers/decidim/hashtags_resolver.rb
decidim-core-0.28.0.rc5 app/resolvers/decidim/hashtags_resolver.rb
decidim-core-0.28.0.rc4 app/resolvers/decidim/hashtags_resolver.rb