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=::Formotion::Form.new(s.form_data)
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)
@@ -1,5 +1,5 @@
1
1
  module ProMotion
2
2
  module Formotion
3
- VERSION = "0.0.8" unless defined?(ProMotion::Formotion::VERSION)
3
+ VERSION = "0.0.9" 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.8
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-03-26 00:00:00.000000000 Z
12
+ date: 2013-04-01 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: ProMotion