invisible_record 0.1.0 → 0.1.1

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
  SHA256:
3
- metadata.gz: 6652b994c802a947f7034b97b34028bb6affa08af96f131b5afe50825579a163
4
- data.tar.gz: 3b9477b6bb242d1e5a2fa5f5bd95629b1c971b9e1debfee827d74939dfaeab2f
3
+ metadata.gz: 3d70c2835b8f94f922df18a8bec3033a3dda6cfbcbbaf91520e6e4a34e2d32b4
4
+ data.tar.gz: 30ef867d5777a27f1d8ba84e3ffa3b5108114a74ab28b50a0b29a168d660f11a
5
5
  SHA512:
6
- metadata.gz: 57172f40f8b01b3500b32f8d9504f001dd78cde6e0a9cc329da7e79e0c51c36d1db59ff3e796b1327005ca28f689599cc6c6b078486ff1f4328d691550da4fc5
7
- data.tar.gz: d5baf2cf0b4fe0f5c860d4483c06c657e2b0914fb31583bb999061bee4d838785ed7c0131966b0743a3198f820013f74ad9d24309af5e6e88598ede9fbd517d2
6
+ metadata.gz: 6be0ba5a6f8deb7e4ccf880bfb97b73242003bc230bd1f46e55667abaa002d7caff73311cb30f4f68cc7af4d8682362108e5adc27a711da44064bec9313420e4
7
+ data.tar.gz: 1fa1c02848b3d208b8f593a02f18e40992a6c27429c0fce2351b1914ec396c2855f06e250e7604f6ee205738687a6a1d89e9cfb46017f77a3953bd3e8f09d6a6
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- invisible_record (0.1.0)
4
+ invisible_record (0.1.1)
5
5
  activemodel (>= 5)
6
6
  activerecord (>= 5)
7
7
 
@@ -15,7 +15,7 @@ module InvisibleRecord
15
15
  end
16
16
 
17
17
  klass.define_method "soft_delete" do |*args|
18
- options = args.last
18
+ options = args.last || {}
19
19
  options[:datetime] ||= DateTime.now
20
20
  assign_timestamp = "#{deleted_ts_attr}="
21
21
  send(assign_timestamp, options[:datetime])
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module InvisibleRecord
4
- VERSION = "0.1.0"
4
+ VERSION = "0.1.1"
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: invisible_record
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Daniel Rejón
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2021-11-15 00:00:00.000000000 Z
11
+ date: 2021-11-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activemodel