Class: Effective::PageSegment

Inherits:
ActiveRecord::Base
  • Object
show all
Defined in:
app/models/effective/page_segment.rb

Instance Method Summary collapse

Instance Method Details

#bodyObject

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_sObject



30
31
32
# File 'app/models/effective/page_segment.rb', line 30

def to_s
  title.presence || model_name.human
end

#uidObject



39
40
41
# File 'app/models/effective/page_segment.rb', line 39

def uid
  title.parameterize
end