Class: EffectiveCarouselItemsDatatable

Inherits:
Effective::Datatable
  • Object
show all
Defined in:
app/datatables/effective_carousel_items_datatable.rb

Instance Method Summary collapse

Instance Method Details



30
31
32
33
# File 'app/datatables/effective_carousel_items_datatable.rb', line 30

def carousel
  carousel = EffectivePages.carousels.find { |carousel| carousel.to_s == attributes[:carousel].to_s }
  carousel || raise("unexpected carousel: #{attributes[:carousel] || 'none'}")
end