Class: Effective::PageBanner
- Inherits:
-
ActiveRecord::Base
- Object
- ActiveRecord::Base
- Effective::PageBanner
- Defined in:
- app/models/effective/page_banner.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.
6 7 8 |
# File 'app/models/effective/page_banner.rb', line 6 def current_user @current_user end |
Instance Method Details
#body ⇒ Object
As per has_many_rich_texts
43 44 45 |
# File 'app/models/effective/page_banner.rb', line 43 def body rich_text_body end |
#to_s ⇒ Object
38 39 40 |
# File 'app/models/effective/page_banner.rb', line 38 def to_s name.presence || model_name.human end |