anonymous_active_record 1.0.1 → 1.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/anonymous_active_record.rb +5 -1
- data/lib/anonymous_active_record/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1902988838c6ae1533726ada1fcd5d708c37caa7afea6bbafc84f0b3ada4c77d
|
4
|
+
data.tar.gz: c223e3d53de54e44058cb574f07bc9deb77959de1278b1cf799371f1a1ebc87b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 10cea43713751bfdd6e888821f89ef65b90fb482895ff2950c65d934278f73565f7a90c084692b6362b17f047ea098ccefacd26fb28077ed420095d3bc59df9f
|
7
|
+
data.tar.gz: 767e23e51229dba5fdaab7014f241121b67bf17ea6acd84f7b39192df3d9e2d27c3ae324d1a5d6daced603ed8a2cfef4b269061bb65b96decbffe9f6aee8939f
|
@@ -53,7 +53,11 @@ module AnonymousActiveRecord
|
|
53
53
|
# :name and :type are required at minimum
|
54
54
|
name = col.delete(:name)
|
55
55
|
type = col.delete(:type)
|
56
|
-
|
56
|
+
if col.empty?
|
57
|
+
t.column(name, type)
|
58
|
+
else
|
59
|
+
t.column(name, type, **col)
|
60
|
+
end
|
57
61
|
else
|
58
62
|
t.column col, :string
|
59
63
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: anonymous_active_record
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Peter Boling
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-
|
11
|
+
date: 2019-06-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -163,7 +163,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
163
163
|
- !ruby/object:Gem::Version
|
164
164
|
version: '0'
|
165
165
|
requirements: []
|
166
|
-
rubygems_version: 3.0.
|
166
|
+
rubygems_version: 3.0.3
|
167
167
|
signing_key:
|
168
168
|
specification_version: 4
|
169
169
|
summary: Almost Anonymous ActiveRecord classes
|