app/controllers/classifications_controller.rb
# Sorry, another beast of a method that handles many different things... because there's necessarily only one form.
Sorry, another beast of a method that handles many different things... because there's necessarily only one form.
Sorry another beast of a method that handles many different things ... because there ' s necessarily only one form .
def add
    debug '#add'
    if params[:split_hierarchy_entry_id]
      add_entries_to_session
      flash[:notice] = I18n.t(:added_classifications_ready)
    else
      flash[:notice] = I18n.t(:no_classificaitons_selected)
    end
  end
def add debug '#add' if params [ :split_hierarchy_entry_id ] add_entries_to_session flash [ :notice ] = I18n . t ( :added_classifications_ready ) else flash [ :notice ] = I18n . t ( :no_classificaitons_selected ) end end
Sorry, another beast of a method that handles many different things... because there's necessarily only one form.
Sorry another beast of a method that handles many different things ... because there ' s necessarily only one form .
# TODO - generalize this check/error with #split and #merge