Class: Spree::Admin::OptionValuesController

Inherits:
ResourceController show all
Defined in:
app/controllers/spree/admin/option_values_controller.rb

Instance Method Summary collapse

Methods inherited from ResourceController

belongs_to, #create, #destroy, #edit, #index, #new, #update

Methods included from TableConcern

#apply_table_sort, #custom_sort_active?, #process_table_query_state, #table, #table_key, #table_registered?

Methods included from BreadcrumbConcern

#add_breadcrumb_icon_instance_var

Instance Method Details

#select_optionsObject



6
7
8
# File 'app/controllers/spree/admin/option_values_controller.rb', line 6

def select_options
  render json: @option_type.option_values.accessible_by(current_ability).to_tom_select_json
end