We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4aa8d8b commit 635f57dCopy full SHA for 635f57d
app/controllers/keys_controller.rb
@@ -130,6 +130,7 @@ def create
130
save_file if key_params[:file]
131
@key = Vault::Key.new
132
@key.safe_attributes = key_params.except(:tags)
133
+ @key.tags = key_params[:tags]
134
@key.project = @project
135
136
self.update_wishlist
app/models/vault/tag.rb
@@ -7,8 +7,6 @@ class Tag < ActiveRecord::Base
7
8
safe_attributes 'name', 'color'
9
10
- safe_attributes 'name', 'color'
11
-
12
validates :name, presence: true, uniqueness: true
13
validates :color, presence: true
14
0 commit comments