ProMotion-formotion 0.0.6 → 0.0.7
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.
@@ -9,21 +9,17 @@ class FormotionScreen < ::Formotion::FormController # Can also be < UIViewContro
|
|
9
9
|
def form_data
|
10
10
|
{}
|
11
11
|
end
|
12
|
-
|
13
|
-
def init_form
|
14
|
-
@local_form=::Formotion::Form.new(form_data)
|
15
|
-
if self.respond_to?(:on_submit)
|
16
|
-
@local_form.on_submit do |form|
|
17
|
-
self.on_submit(form.render)
|
18
|
-
end
|
19
|
-
end
|
20
|
-
self.initWithForm(@local_form)
|
21
|
-
end
|
22
12
|
|
23
13
|
def self.new(args = {})
|
24
|
-
s = self.alloc
|
14
|
+
s = self.alloc
|
25
15
|
s.on_create(args) if s.respond_to?(:on_create)
|
26
|
-
s
|
16
|
+
@local_form=::Formotion::Form.new(s.form_data)
|
17
|
+
if s.respond_to?(:on_submit)
|
18
|
+
@local_form.on_submit do |form|
|
19
|
+
s.on_submit(form.render)
|
20
|
+
end
|
21
|
+
end
|
22
|
+
s.initWithForm(@local_form)
|
27
23
|
end
|
28
24
|
|
29
25
|
def viewDidLoad
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ProMotion-formotion
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.7
|
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-03-
|
12
|
+
date: 2013-03-07 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: ProMotion
|