Sha256: abcd69c431f6b4ca64d59452a52d9665676c1e9348b684d9140a57aeab42fc51

Contents?: true

Size: 511 Bytes

Versions: 4

Compression:

Stored size: 511 Bytes

Contents

# frozen_string_literal: true

module Decidim
  # This concern contains the logic related to followable resources.
  module Hashtaggable
    extend ActiveSupport::Concern

    included do
      def search_title
        renderer = Decidim::ContentRenderers::HashtagRenderer.new(title)
        renderer.render_without_link.html_safe
      end

      def search_body
        renderer = Decidim::ContentRenderers::HashtagRenderer.new(body)
        renderer.render_without_link.html_safe
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
decidim-core-0.14.4 lib/decidim/hashtaggable.rb
decidim-core-0.14.3 lib/decidim/hashtaggable.rb
decidim-core-0.14.2 lib/decidim/hashtaggable.rb
decidim-core-0.14.1 lib/decidim/hashtaggable.rb