Module: Locomotive::Concerns::ContentEntry::NextPrevious
- Included in:
- Locomotive::ContentEntry
- Defined in:
- app/models/locomotive/concerns/content_entry/next_previous.rb
Instance Method Summary collapse
-
#next ⇒ Object
Return the next content entry based on the order defined in the parent content type.
-
#previous ⇒ Object
Return the previous content entry based on the order defined in the parent content type.
Instance Method Details
#next ⇒ Object
Return the next content entry based on the order defined in the parent content type.
10 11 12 |
# File 'app/models/locomotive/concerns/content_entry/next_previous.rb', line 10 def next next_or_previous :gt end |
#previous ⇒ Object
Return the previous content entry based on the order defined in the parent content type.
18 19 20 |
# File 'app/models/locomotive/concerns/content_entry/next_previous.rb', line 18 def previous next_or_previous :lt end |