morse_active_record_helpers 1.1.0 → 1.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/morse_active_record_helpers.rb +5 -3
- data/lib/morse_active_record_helpers/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6cfcb3eab6e67f4e3f0c89dcfb2021f441729149
|
4
|
+
data.tar.gz: 89ed40d285b296f0f3658be531a78496a94bedf6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0482bffd2c42c45bb6d15a3c6f5a325d8524a36dfca6ace3a269d66b9d9f56341e77ca3017b830ba8c5169601b890e110b7df8939582ace5eb9f3f40d542ee52
|
7
|
+
data.tar.gz: 863f6f13d2214d5f140a6a9737d574f71fb492f0e1101c10656a0dc0c0e50eac1930f8ef910c0ccd69013b09a7956a662fa3ac363c11736b56a1e58bf11914cf
|
@@ -25,9 +25,11 @@ module MorseActiveRecordHelpers
|
|
25
25
|
end
|
26
26
|
end
|
27
27
|
|
28
|
-
def blank_to_nil(
|
29
|
-
|
30
|
-
self.send(thing.
|
28
|
+
def blank_to_nil(*things)
|
29
|
+
things.each do |thing|
|
30
|
+
if self.send(thing).blank?
|
31
|
+
self.send(thing.to_s+'=',nil)
|
32
|
+
end
|
31
33
|
end
|
32
34
|
end
|
33
35
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: morse_active_record_helpers
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1.
|
4
|
+
version: 1.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Terry S
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-08-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|