Module: Breeze::CardsHelper

Includes:
ViewHelper
Defined in:
app/helpers/breeze/cards_helper.rb

Instance Method Summary collapse

Methods included from ViewHelper

#bg, #button_classes, #current_lang, #get_button_text, #header_list, #image_for, last_blog, #last_blog, #render_section, #view_button

Methods included from BreezeHelper

#aspect_ratio, #card_field_name, #last_change_class, #last_change_digit, #last_change_text, #updated_by

Methods included from SharedHelper

#markdown, #markdown_image, #prose_classes, #renderer, #rows

Methods included from OptionsHelper

#background_option, #column_option, #date_precision, #height_option, #item_align_option, #margin_option, #options, #order_option, #prose_option, #shade_option, #slider_columns_option, #text_align_option, #text_color_option, #text_columns_option

Instance Method Details

#card_section_select(card) ⇒ Object



5
6
7
8
9
# File 'app/helpers/breeze/cards_helper.rb', line 5

def card_section_select(card)
  card_sections = card.section.page.sections
  card_sections.delete_if{|c| c.card_template.blank?}
  card_sections.collect{|s| [s.header , s.id]}
end