formie 0.6.5 → 0.6.6

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. data/Gemfile +1 -1
  2. data/lib/formie/version.rb +1 -1
  3. data/lib/formie.rb +3 -2
  4. metadata +11 -11
data/Gemfile CHANGED
@@ -1,6 +1,6 @@
1
1
  source "http://rubygems.org"
2
2
 
3
- gem "rails"
3
+ gem "rails", '~> 3.2.1'
4
4
  gem 'jquery-rails'
5
5
 
6
6
  group :test do
@@ -1,3 +1,3 @@
1
1
  module Formie
2
- VERSION = '0.6.5'
2
+ VERSION = '0.6.6'
3
3
  end
data/lib/formie.rb CHANGED
@@ -23,8 +23,9 @@ module Formie
23
23
  options[:locals].update params
24
24
  options[:locals].update :formiename => formiename,
25
25
  :block => block, :form => self, :args => args
26
- (@template && @template.render(options)) ||
27
- controller.render_to_body(options)
26
+ defined?(controller) == 'method' ?
27
+ controller.render_to_body(options) :
28
+ @template.render(options)
28
29
  })
29
30
  #p "** defined #{where} #{formiename}"
30
31
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: formie
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.5
4
+ version: 0.6.6
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,11 +9,11 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-02-21 00:00:00.000000000 Z
12
+ date: 2012-02-25 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails
16
- requirement: &77629180 !ruby/object:Gem::Requirement
16
+ requirement: &80904440 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ! '>='
@@ -21,10 +21,10 @@ dependencies:
21
21
  version: '0'
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *77629180
24
+ version_requirements: *80904440
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: sqlite3
27
- requirement: &77628020 !ruby/object:Gem::Requirement
27
+ requirement: &80920020 !ruby/object:Gem::Requirement
28
28
  none: false
29
29
  requirements:
30
30
  - - ! '>='
@@ -32,10 +32,10 @@ dependencies:
32
32
  version: '0'
33
33
  type: :development
34
34
  prerelease: false
35
- version_requirements: *77628020
35
+ version_requirements: *80920020
36
36
  - !ruby/object:Gem::Dependency
37
37
  name: rspec-rails
38
- requirement: &77626900 !ruby/object:Gem::Requirement
38
+ requirement: &80919070 !ruby/object:Gem::Requirement
39
39
  none: false
40
40
  requirements:
41
41
  - - ! '>='
@@ -43,10 +43,10 @@ dependencies:
43
43
  version: '0'
44
44
  type: :development
45
45
  prerelease: false
46
- version_requirements: *77626900
46
+ version_requirements: *80919070
47
47
  - !ruby/object:Gem::Dependency
48
48
  name: capybara
49
- requirement: &77625620 !ruby/object:Gem::Requirement
49
+ requirement: &80917730 !ruby/object:Gem::Requirement
50
50
  none: false
51
51
  requirements:
52
52
  - - ! '>='
@@ -54,7 +54,7 @@ dependencies:
54
54
  version: '0'
55
55
  type: :development
56
56
  prerelease: false
57
- version_requirements: *77625620
57
+ version_requirements: *80917730
58
58
  description: ! " Formie implements low level template-based helpers. It injects\n
59
59
  \ the formies into the ActionView module. The form-bounded as well as\n the
60
60
  unbounded templates are supported. Still, the ActionView\n functionality (e.g.
@@ -87,7 +87,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
87
87
  version: '0'
88
88
  segments:
89
89
  - 0
90
- hash: -611823789
90
+ hash: -199405233
91
91
  required_rubygems_version: !ruby/object:Gem::Requirement
92
92
  none: false
93
93
  requirements: