diff --git a/app/controllers/tags_controller.rb b/app/controllers/tags_controller.rb index 3aa3ab5e6..3a7eb04da 100644 --- a/app/controllers/tags_controller.rb +++ b/app/controllers/tags_controller.rb @@ -1,15 +1,10 @@ class TagsController < ApplicationController - before_action :load_vars, only: [:new, :create, :update, :destroy] + before_action :load_vars, only: [:create, :update, :destroy] before_action :load_vars_nested, only: [:update, :destroy] - before_action :check_create_permissions, only: [:new, :create] + before_action :check_create_permissions, only: [:create] before_action :check_update_permissions, only: [:update] before_action :check_destroy_permissions, only: [:destroy] - def new - @tag = Tag.new - session[:return_to] ||= request.referer - end - def create @tag = Tag.new(tag_params) @tag.created_by = current_user