ProMotion-formotion 0.0.8 → 0.0.9
Sign up to get free protection for your applications and to get access to all the features.
@@ -13,7 +13,8 @@ class FormotionScreen < ::Formotion::FormController # Can also be < UIViewContro
|
|
13
13
|
def self.new(args = {})
|
14
14
|
s = self.alloc
|
15
15
|
s.on_create(args) if s.respond_to?(:on_create)
|
16
|
-
@local_form
|
16
|
+
@local_form=s.form_data
|
17
|
+
@local_form=::Formotion::Form.new(@local_form) if @local_form.class==Hash
|
17
18
|
if s.respond_to?(:on_submit)
|
18
19
|
@local_form.on_submit do |form|
|
19
20
|
s.on_submit(form.render)
|
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.9
|
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-
|
12
|
+
date: 2013-04-01 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: ProMotion
|