Class: MegaBar::ThemeJoinsController

Inherits:
ApplicationController show all
Includes:
MegaBarConcern
Defined in:
app/controllers/mega_bar/theme_joins_controller.rb

Instance Method Summary collapse

Methods included from MegaBarConcern

#add_form_path_to_mega_displays, #collect_filters, #column_sorting, #conditions, #constant_from_controller, #create, #destroy, #edit, #form_path, #index, #is_displayable?, #might_filter?, #might_paginate?, #move, #new, #num_per_page, #process_filters, #redo_setup, #set_vars_for_all, #set_vars_for_displays, #show, #sort_column, #sort_direction, #test_create, #unpack_nested_classes, #update

Methods inherited from ApplicationController

#_params

Instance Method Details

#get_optionsObject



5
6
7
8
9
10
# File 'app/controllers/mega_bar/theme_joins_controller.rb', line 5

def get_options
  @options[:mega_bar_theme_joins] =  {
    theme_id: Theme.all.pluck("name, id"),
    themeable_type: [['Layout', 'Layout'], ['Block', 'Block']]
  }
end