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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: ec7624bd77abda69aed8bce974fc1aae744d3b69
4
- data.tar.gz: 7ad33143ffc80e198bcb000fbc63ccf948efd873
3
+ metadata.gz: 6cfcb3eab6e67f4e3f0c89dcfb2021f441729149
4
+ data.tar.gz: 89ed40d285b296f0f3658be531a78496a94bedf6
5
5
  SHA512:
6
- metadata.gz: a7ea2d9cc9cba56c23306c7f6d65c122a311fa17af01254e9b09842a1d24bb173d71d5a9f0755caeea780d8682be3888e96dd9e90a090af31fca60bdebc494b6
7
- data.tar.gz: 6942fc9efdf91c6b426c51c6b9604b6f25425229670e8d57d3009c23eac9b34c452f2198f37f0825263bc7ca5930b7c9587dfabbcf886363c643d1c392d1ea08
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(thing)
29
- if self.send(thing).blank?
30
- self.send(thing.to_s+'=',nil)
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
 
@@ -1,3 +1,3 @@
1
1
  module MorseActiveRecordHelpers
2
- VERSION = "1.1.0"
2
+ VERSION = "1.1.1"
3
3
  end
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.0
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-03-02 00:00:00.000000000 Z
11
+ date: 2016-08-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler