Class: Effective::PageSegment
- Inherits:
-
ActiveRecord::Base
- Object
- ActiveRecord::Base
- Effective::PageSegment
- Defined in:
- app/models/effective/page_segment.rb
Instance Method Summary collapse
-
#body ⇒ Object
As per has_many_rich_texts.
- #to_s ⇒ Object
- #uid ⇒ Object
Instance Method Details
#body ⇒ Object
As per has_many_rich_texts
35 36 37 |
# File 'app/models/effective/page_segment.rb', line 35 def body rich_text_body end |
#to_s ⇒ Object
30 31 32 |
# File 'app/models/effective/page_segment.rb', line 30 def to_s title.presence || model_name.human end |
#uid ⇒ Object
39 40 41 |
# File 'app/models/effective/page_segment.rb', line 39 def uid title.parameterize end |