diff --git a/app/controllers/users_controller.rb b/app/controllers/users_controller.rb index 224d3ff6..7aff655d 100644 --- a/app/controllers/users_controller.rb +++ b/app/controllers/users_controller.rb @@ -91,16 +91,6 @@ class UsersController < ApplicationController format.json { render json: @user } end end - - # PUT /user/update_metacode_focus - def update_metacode_focus - @user = current_user - @user.settings.metacode_focus = params[:value] - @user.save - respond_to do |format| - format.json { render json: { success: "success" }} - end - end # PUT /user/update_metacode_focus def update_metacode_focus diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb index 860cd38c..7d0f4f68 100644 --- a/app/helpers/application_helper.rb +++ b/app/helpers/application_helper.rb @@ -41,10 +41,6 @@ module ApplicationHelper def user_metacode current_user.settings.metacode_focus ? Metacode.find(current_user.settings.metacode_focus.to_i) : nil end - - def user_metacode - current_user.settings.metacode_focus ? Metacode.find(current_user.settings.metacode_focus.to_i) || user_metacodes()[0] : user_metacodes()[0] - end def user_most_used_metacodes @metacodes = current_user.most_used_metacodes.map { |id| Metacode.find(id) } diff --git a/app/views/maps/_newtopic.html.erb b/app/views/maps/_newtopic.html.erb index bd191cc5..a4088e03 100644 --- a/app/views/maps/_newtopic.html.erb +++ b/app/views/maps/_newtopic.html.erb @@ -4,15 +4,15 @@