Class: ContentText
- Inherits:
-
ApplicationRecord
- Object
- ActiveRecord::Base
- ApplicationRecord
- ContentText
- Includes:
- Concerns::ContentType
- Defined in:
- app/models/content_text.rb
Instance Method Summary collapse
Methods included from Concerns::ContentType
#column, #content_type_is?, #parent
Instance Method Details
#content_type ⇒ Object
8 9 10 |
# File 'app/models/content_text.rb', line 8 def content_type :text end |
#linked_to_searchable_parent? ⇒ Boolean
12 13 14 |
# File 'app/models/content_text.rb', line 12 def linked_to_searchable_parent? column.present? && parent.present? && parent.respond_to?(:searchable?) && parent.searchable? end |