mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-03-04 03:36:44 +08:00
Remove tags
This commit is contained in:
parent
008b31df0c
commit
6999105e51
1 changed files with 2 additions and 7 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue