camaleon_cms 2.4.4.1 → 2.4.4.2

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of camaleon_cms might be problematic. Click here for more details.

checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 3bca67b9f0891b0776e24401280c62c9c9b8ffa4
4
- data.tar.gz: 4f236d141fb6218f528c817aae3492bd5d819d00
3
+ metadata.gz: fc3e07537e67c571eec9b63db5f09708ea5b3e8e
4
+ data.tar.gz: 5128328e45dfa810ea9a76a02a1ad44dcfe6d17e
5
5
  SHA512:
6
- metadata.gz: ad94235e272b6fc8389926a989e55202ee8ff69f63aee091c9958423253133cf4d2ecc2956325bf12ebc27f6e8cb04c7dadcdb16585447ea8caea5b80e0e4183
7
- data.tar.gz: e88a7cb01256fcf2df64afa4243c0c07a3f9c11338f9f32961191dd74baf751c38002ba806016f53e383585bf60def8ac3635ff145176fa9a38d63352fe1c8e3
6
+ metadata.gz: f1bd02ae23bc5504c68e805fad7940daf4bf1a7e5d255e01d0bcbe9014061ca72a334b5ebfca376bcdefe03c649558c6cdb431bd9652004e80dad3f2b5761790
7
+ data.tar.gz: fd4bee1b01b82101170336f7c96289205f7a6addbf8f3309185c7f6e2cd49543866a15fc3431f1eecf08ca248c933a9b20c9ea1c7c3b534f2a6db3ddc81aa9c7
@@ -43,12 +43,12 @@ module CamaleonCms::CategoriesTagsForPosts extend ActiveSupport::Concern
43
43
  def update_tags(tags)
44
44
  rescue_extra_data
45
45
  tags = tags.split(",").strip
46
- post_tags = self.post_type.post_tags
47
- post_tags = post_tags.where("name not in (?)", tags) if tags.present?
48
- self.term_relationships.where("term_taxonomy_id in (?)", post_tags.pluck("#{CamaleonCms::TermTaxonomy.table_name}.id")).destroy_all
46
+ post_tags = post_type.post_tags
47
+ post_tags = post_tags.where.not(name: tags) if tags.present?
48
+ term_relationships.where("term_taxonomy_id in (?)", post_tags.pluck("#{CamaleonCms::TermTaxonomy.table_name}.id")).destroy_all
49
49
  tags.each do |f|
50
- post_tag = self.post_type.post_tags.where({name: f}).first_or_create(slug: f.parameterize)
51
- self.term_relationships.where({term_taxonomy_id: post_tag.id}).first_or_create
50
+ post_tag = post_type.post_tags.where({name: f}).first_or_create(slug: f.parameterize)
51
+ term_relationships.where({term_taxonomy_id: post_tag.id}).first_or_create
52
52
  end
53
53
  update_counters("tags")
54
54
  end
@@ -1,3 +1,3 @@
1
1
  module CamaleonCms
2
- VERSION = '2.4.4.1'
2
+ VERSION = '2.4.4.2'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: camaleon_cms
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.4.4.1
4
+ version: 2.4.4.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Owen Peredo Diaz