Class: Backend::CustomFieldsController

Inherits:
BaseController show all
Defined in:
app/controllers/backend/custom_fields_controller.rb

Instance Attribute Summary

Attributes inherited from ApplicationController

#current_theme

Instance Method Summary collapse

Methods inherited from BaseController

accounts_range_crit, crit_params, journal_entries_states_crit, journal_period_crit, journals_crit, search_conditions

Methods inherited from ApplicationController

#after_sign_in_path_for, #authorized?, human_action_name, #human_action_name

Instance Method Details

#sortObject

Sort.all choices by name


48
49
50
51
52
# File 'app/controllers/backend/custom_fields_controller.rb', line 48

def sort
  return unless @custom_field = find_and_check
  @custom_field.sort_choices!
  redirect_to params[:redirect] || { action: :index }
end