fabrication 2.6.5 → 2.7.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/fabrication/schematic/evaluator.rb +5 -1
- data/lib/fabrication/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: e6ce2db9b460bb009b38822ad0046da19e88a3b4
|
4
|
+
data.tar.gz: ddc6ce7ea3032c887ba33482a925eeb92aa3314d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2752606ddb6ad0ffabf399b35f5c63c6154f8991f636ba3997e2ca9d0f53b1d4043b658aeb37c93b0955fb3fda48a9b9e0e0f0f5d1076a17a760227fab66677e
|
7
|
+
data.tar.gz: 23cc0d4b943234def18f3c2e44bf4f70c4e642d397026083dde2f298a392f73bdaac139c1f249a54a9ff032b544069a207876bfc72a9adabf968a192cb00b067
|
@@ -61,7 +61,11 @@ class Fabrication::Schematic::Evaluator < BasicObject
|
|
61
61
|
|
62
62
|
def transient(*field_names)
|
63
63
|
field_names.each do |field_name|
|
64
|
-
|
64
|
+
if field_name.kind_of?(::Hash)
|
65
|
+
field_name.each_pair { |name, value| @_definition.append_or_update_attribute(name, value, transient: true) }
|
66
|
+
else
|
67
|
+
@_definition.append_or_update_attribute(field_name, nil, transient: true)
|
68
|
+
end
|
65
69
|
end
|
66
70
|
end
|
67
71
|
end
|
data/lib/fabrication/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fabrication
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.
|
4
|
+
version: 2.7.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Paul Elliott
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-
|
11
|
+
date: 2013-05-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activerecord
|