ragamuffins 1.0.6 → 1.0.7

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 5b21be8cd15ac97d4421d7555e66911c15c5bfd8
4
- data.tar.gz: f4182c6365a6d9f0decf29f3b638a3b7684afebc
3
+ metadata.gz: cfe142ef82e7fb26ac3ab6d9904552fbd5a63c62
4
+ data.tar.gz: 45a9e869bc1548c4f2f1f598c144b7fa66123ea9
5
5
  SHA512:
6
- metadata.gz: 62a4830ffb5870ded2180f86f715886e9da5197f1bc8461bb069b026448525b52e1473ed5dce517cf4b09c64fae188b33367fb4b4116518cb53ddb97f7d535a1
7
- data.tar.gz: 9dec37fc397b75eb5e6fc5dc93da748a0623fcf7abb290124e441626539d35d8d1b4ccb6911ec2ff176ae6302d991dfe12b6dbe1ba3affbe57ceaee58d9bcb73
6
+ metadata.gz: 5a3cb3f350cccb213f69e25ca5cbd83aeb7c9bfea9d484d407c73a7d144398ca17403909423f6b4912751c2ae1f42788975926daba0bb23a38215a84618da5a6
7
+ data.tar.gz: 46fb047fa962418a1c4e0b7a178b0a19ac01fc3fb61b8edbd0c3155dfdce8b9bb17d188085fcb5f1eef1a574c697f4f185ae05c821901584643e32365db8ca48
@@ -7,10 +7,10 @@ module Ragamuffins
7
7
  # Fetch all the deleted ids from the backend, and return them as an array
8
8
  # Model.deleted_ids = []
9
9
  def self.show_deleted_ids(ids = [])
10
- return [] if ids == nil
10
+ return [] if ids == nil || ids.empty?
11
11
  # Because params are always strings, we double check that (the first to_s) and then make sure that we convert the ids to a string as well
12
12
  # This allows us to make sure that we can handle UUIDs as well.
13
- ids.collect{|s| s.to_s} - self.where("#{table_name}.id IN (?)", ids).map(&:id).map(&:to_s)
13
+ ids.collect{|s| s.to_s} - self.where("#{table_name}.id IN (?)", ids).pluck(:id).map(&:to_s)
14
14
 
15
15
  #
16
16
  # if we were passed some ids that forms a bad query,
@@ -1,3 +1,3 @@
1
1
  module Ragamuffins
2
- VERSION = "1.0.6"
2
+ VERSION = "1.0.7"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ragamuffins
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.6
4
+ version: 1.0.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Isaac Norman