Sha256: a450299f4e858b9747571141595e16a0f5a9e6cd832b5f63af3437dec22f2d9b
Contents?: true
Size: 387 Bytes
Versions: 24
Compression:
Stored size: 387 Bytes
Contents
class ContentText < ApplicationRecord include Concerns::ContentType # This triggers the searchable instance's after_save callback, which # in turn updates all search indices. after_save { parent.save! if linked_to_searchable_parent? } def content_type :text end def linked_to_searchable_parent? column.present? && parent.present? && parent.searchable? end end
Version data entries
24 entries across 24 versions & 1 rubygems