tachyon 0.1.2 → 0.1.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/tachyon.rb +2 -2
- data/lib/tachyon/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: dd315d416254c5c079380c2ae0d1519133cf4fac
|
4
|
+
data.tar.gz: 3e847572348a3b88f6d3a1136764973b9eec9379
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7829a117cf4a2efa4e69ed87d5b6a2af87d541a754a6f77cce341e47ba0aba2ae2de2b41f5ee051856edbe905e440fea8df4edc66109b1c96f16327dc3459494
|
7
|
+
data.tar.gz: e705045e869b5d93e7aedec43090a1bbcc054d63967842fbe13d4332652052c0862c36308f20a7272f5f06de0765495fd9aa8e5affd6cab36b3ce5936ec38654
|
data/lib/tachyon.rb
CHANGED
@@ -14,8 +14,8 @@ class Tachyon
|
|
14
14
|
|
15
15
|
def self.insert_record(klass, data)
|
16
16
|
if klass.has_attribute?(:created_at) && klass.has_attribute?(:updated_at)
|
17
|
-
defaults = { created_at: Time.now, updated_at: Time.now }
|
18
|
-
data = defaults.merge(data)
|
17
|
+
defaults = { created_at: Time.now, updated_at: Time.now }.with_indifferent_access
|
18
|
+
data = defaults.merge(data.with_indifferent_access)
|
19
19
|
end
|
20
20
|
|
21
21
|
table = klass.arel_table
|
data/lib/tachyon/version.rb
CHANGED