objective_form 0.0.4 → 0.0.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/lib/objective_form/base.rb +5 -3
- data/lib/objective_form/version.rb +1 -1
- metadata +2 -2
data/lib/objective_form/base.rb
CHANGED
|
@@ -10,8 +10,10 @@ module ObjectiveForm
|
|
|
10
10
|
send("#{name}=", value)
|
|
11
11
|
end
|
|
12
12
|
|
|
13
|
-
pseudo_relations.
|
|
14
|
-
|
|
13
|
+
unless pseudo_relations.nil?
|
|
14
|
+
pseudo_relations.each do |rel|
|
|
15
|
+
instance_variable_set("@#{rel.name}", []) unless send(rel.name)
|
|
16
|
+
end
|
|
15
17
|
end
|
|
16
18
|
end
|
|
17
19
|
|
|
@@ -105,4 +107,4 @@ module ObjectiveForm
|
|
|
105
107
|
end
|
|
106
108
|
end
|
|
107
109
|
end
|
|
108
|
-
end
|
|
110
|
+
end
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: objective_form
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.0.
|
|
4
|
+
version: 0.0.5
|
|
5
5
|
prerelease:
|
|
6
6
|
platform: ruby
|
|
7
7
|
authors:
|
|
@@ -9,7 +9,7 @@ authors:
|
|
|
9
9
|
autorequire:
|
|
10
10
|
bindir: bin
|
|
11
11
|
cert_chain: []
|
|
12
|
-
date: 2013-04-
|
|
12
|
+
date: 2013-04-19 00:00:00.000000000 Z
|
|
13
13
|
dependencies: []
|
|
14
14
|
description: Objective form is for whoever miss dynamic nested fields adding in form
|
|
15
15
|
object using nested_form gem by Ryan Bates. Beside that it is lightweight abstraction
|