From 6999105e51ad8c97f2f7c87bc9356bcf270851fa Mon Sep 17 00:00:00 2001 From: Luka Murn Date: Sat, 19 Nov 2016 16:57:08 +0100 Subject: [PATCH] Remove tags --- app/controllers/tags_controller.rb | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) 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