diff --git a/Gemfile b/Gemfile index 69f0d4880..7ec378043 100644 --- a/Gemfile +++ b/Gemfile @@ -175,7 +175,7 @@ gem "rails-assets-diaspora_jsxc", "0.1.5.develop.7", source: "https://rails-asse # Tags -gem "acts-as-taggable-on", "5.0.0" +gem "acts-as-taggable-on", "6.0.0" # URIs and HTTP diff --git a/Gemfile.lock b/Gemfile.lock index 427d8353c..6a566a683 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -44,8 +44,8 @@ GEM i18n (>= 0.7, < 2) minitest (~> 5.1) tzinfo (~> 1.1) - acts-as-taggable-on (5.0.0) - activerecord (>= 4.2.8) + acts-as-taggable-on (6.0.0) + activerecord (~> 5.0) acts_as_api (1.0.1) activemodel (>= 3.0.0) activesupport (>= 3.0.0) @@ -763,7 +763,7 @@ PLATFORMS DEPENDENCIES active_model_serializers (= 0.9.7) activerecord-import (= 0.27.0) - acts-as-taggable-on (= 5.0.0) + acts-as-taggable-on (= 6.0.0) acts_as_api (= 1.0.1) addressable (= 2.5.2) asset_sync (= 2.5.0) diff --git a/app/models/profile.rb b/app/models/profile.rb index ad58f59b1..74ca9fec6 100644 --- a/app/models/profile.rb +++ b/app/models/profile.rb @@ -157,8 +157,9 @@ class Profile < ApplicationRecord end private + def clearable_fields - self.attributes.keys - ["id", "created_at", "updated_at", "person_id"] + attributes.keys - %w[id created_at updated_at person_id tag_list] end def build_image_url(url)