Class: Effective::CarouselItem
- Inherits:
-
ActiveRecord::Base
- Object
- ActiveRecord::Base
- Effective::CarouselItem
- Defined in:
- app/models/effective/carousel_item.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.
- #number ⇒ Object
- #to_s ⇒ Object
Instance Attribute Details
#current_user ⇒ Object
Returns the value of attribute current_user.
8 9 10 |
# File 'app/models/effective/carousel_item.rb', line 8 def current_user @current_user end |
Instance Method Details
#body ⇒ Object
As per has_many_rich_texts
68 69 70 |
# File 'app/models/effective/carousel_item.rb', line 68 def body rich_text_body end |
#number ⇒ Object
72 73 74 |
# File 'app/models/effective/carousel_item.rb', line 72 def number '#' + position.to_s end |
#to_s ⇒ Object
63 64 65 |
# File 'app/models/effective/carousel_item.rb', line 63 def to_s persisted? ? [carousel, number].join(' ') : model_name.human end |