Class: Effective::PageSection

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#current_userObject

Returns the value of attribute current_user.



8
9
10
# File 'app/models/effective/page_section.rb', line 8

def current_user
  @current_user
end

Instance Method Details

#bodyObject

As per has_many_rich_texts



42
43
44
# File 'app/models/effective/page_section.rb', line 42

def body
  rich_text_body
end

#to_sObject



37
38
39
# File 'app/models/effective/page_section.rb', line 37

def to_s
  name.presence || model_name.human
end