active_recall 1.2.0 → 1.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: cd98a58a0b310c84f7fb225ea5d7ab8f6a15f3f784b47b57c0b423d2b7ec4001
4
- data.tar.gz: 94a4401f4adb97d724d0287d6edad73ae42a8a5e1073436132f90e3fb23bb4a8
3
+ metadata.gz: 9fd2908666f48d08173c20837e851db9ebd7a7a8b10d2f565deb16d84b013d60
4
+ data.tar.gz: e5028ad1e24d606adbd87aa0b568b9325f9a1cf33c68969a1b3ec188934ae15e
5
5
  SHA512:
6
- metadata.gz: 2b7fb09f86a3513e82370c320833cf620ee9082371a27c2f404c913ff2717cc5f3fe0145acc8061a90623661266eb86d8cefcc37843081a3d998caba898c033d
7
- data.tar.gz: 19d5f46d9df7f38c859adac7c2eae9eb90359529b5890ac1bf5c6f9f99251636b96be5ee2dbcb847410601826554f94f140d270bc499088c99e1cb776b9f471c
6
+ metadata.gz: 2bba9aa5339b214a51255a04d0c63c2d518f130f376166c742a7c0267923c778279b760dd0292cb80157d0fad3f7ade2155f52cef2403f79f53c418681ac273c
7
+ data.tar.gz: '09d5aa80737619a70d387527bf214ad39dcaaf1def5c5c28b3db4384fee1be5f855454137463dbdb19aabbdfab63b785ec3ce20daf82bceed647221b0105b719'
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- active_recall (1.2.0)
4
+ active_recall (1.2.1)
5
5
  activerecord (>= 5.2.3)
6
6
  activesupport (>= 5.2.3)
7
7
 
@@ -13,8 +13,9 @@ module ActiveRecall
13
13
  end
14
14
 
15
15
  def remove_deck
16
- deck = ActiveRecall::Deck.where(user_id: id, user_type: self.class.name).first
17
- deck.destroy
16
+ ActiveRecall::Deck
17
+ .where(user_id: id, user_type: self.class.name)
18
+ .destroy_all
18
19
  end
19
20
  end
20
21
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module ActiveRecall
4
- VERSION = '1.2.0'
4
+ VERSION = '1.2.1'
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: active_recall
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.0
4
+ version: 1.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Robert Gravina
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: exe
11
11
  cert_chain: []
12
- date: 2019-10-18 00:00:00.000000000 Z
12
+ date: 2019-12-16 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: bundler