ProMotion-formotion 0.0.6 → 0.0.7

Sign up to get free protection for your applications and to get access to all the features.
@@ -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.init_form
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
@@ -1,5 +1,5 @@
1
1
  module ProMotion
2
2
  module Formotion
3
- VERSION = "0.0.6" unless defined?(ProMotion::Formotion::VERSION)
3
+ VERSION = "0.0.7" unless defined?(ProMotion::Formotion::VERSION)
4
4
  end
5
5
  end
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.6
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-06 00:00:00.000000000 Z
12
+ date: 2013-03-07 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: ProMotion