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
63 64 65 |
# File 'app/models/effective/carousel_item.rb', line 63 def body rich_text_body end |
#number ⇒ Object
67 68 69 |
# File 'app/models/effective/carousel_item.rb', line 67 def number '#' + position.to_s end |
#to_s ⇒ Object
58 59 60 |
# File 'app/models/effective/carousel_item.rb', line 58 def to_s persisted? ? [carousel, number].join(' ') : model_name.human end |