Class: Effective::PageSection
- Inherits:
-
ActiveRecord::Base
- Object
- ActiveRecord::Base
- Effective::PageSection
- Defined in:
- app/models/effective/page_section.rb
Instance Attribute Summary collapse
-
#current_user ⇒ Object
Returns the value of attribute current_user.
Instance Method Summary collapse
-
#body ⇒ Object
As per has_many_rich_texts.
- #to_s ⇒ Object
Instance Attribute Details
#current_user ⇒ Object
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
#body ⇒ Object
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_s ⇒ Object
37 38 39 |
# File 'app/models/effective/page_section.rb', line 37 def to_s name.presence || model_name.human end |