awesome_nested_fields 0.5.2 → 0.5.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,3 +1,3 @@
1
1
  module AwesomeNestedFields
2
- VERSION = "0.5.2"
2
+ VERSION = "0.5.3"
3
3
  end
@@ -30,14 +30,14 @@ ActionView::Helpers::FormBuilder.class_eval do
30
30
  protected
31
31
 
32
32
  def render_nested_fields_template(association, options, &block)
33
- templates = @template.content_tag(:script, type: 'text/html', class: options[:item_template_class]) do
34
- template = fields_for(association, options[:new_object], child_index: options[:new_item_index], &block)
33
+ templates = @template.content_tag(:script, :type => 'text/html', :class => options[:item_template_class]) do
34
+ template = fields_for(association, options[:new_object], :child_index => options[:new_item_index], &block)
35
35
  template = AwesomeNestedFields.escape_html_tags(template) if options[:escape_template]
36
36
  template
37
37
  end
38
38
 
39
39
  if options[:show_empty]
40
- empty_template = @template.content_tag(:script, type: 'text/html', class: options[:empty_template_class]) do
40
+ empty_template = @template.content_tag(:script, :type => 'text/html', :class => options[:empty_template_class]) do
41
41
  template = @template.capture { yield nil }
42
42
  template = AwesomeNestedFields.escape_html_tags(template) if options[:escape_template]
43
43
  template
@@ -64,4 +64,4 @@ protected
64
64
  end unless @template.respond_to?(:nested_fields_templates)
65
65
  end
66
66
 
67
- end
67
+ end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: awesome_nested_fields
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.2
4
+ version: 0.5.3
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,12 +9,11 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2011-07-29 00:00:00.000000000 -03:00
13
- default_executable:
12
+ date: 2011-09-07 00:00:00.000000000 Z
14
13
  dependencies:
15
14
  - !ruby/object:Gem::Dependency
16
15
  name: bundler
17
- requirement: &2160796480 !ruby/object:Gem::Requirement
16
+ requirement: &70116503087320 !ruby/object:Gem::Requirement
18
17
  none: false
19
18
  requirements:
20
19
  - - ! '>='
@@ -22,10 +21,10 @@ dependencies:
22
21
  version: 1.0.0
23
22
  type: :development
24
23
  prerelease: false
25
- version_requirements: *2160796480
24
+ version_requirements: *70116503087320
26
25
  - !ruby/object:Gem::Dependency
27
26
  name: rails
28
- requirement: &2160790120 !ruby/object:Gem::Requirement
27
+ requirement: &70116503086600 !ruby/object:Gem::Requirement
29
28
  none: false
30
29
  requirements:
31
30
  - - ! '>='
@@ -33,7 +32,7 @@ dependencies:
33
32
  version: 3.0.0
34
33
  type: :runtime
35
34
  prerelease: false
36
- version_requirements: *2160790120
35
+ version_requirements: *70116503086600
37
36
  description: Awesome dynamic nested fields for Rails and jQuery
38
37
  email: lailson@guava.com.br
39
38
  executables: []
@@ -54,7 +53,6 @@ files:
54
53
  - lib/generators/awesome_nested_fields/install/install_generator.rb
55
54
  - lib/rails/form_helper.rb
56
55
  - vendor/assets/javascripts/jquery.nested-fields.js
57
- has_rdoc: true
58
56
  homepage: http://rubygems.org/gems/awesome_nested_fields
59
57
  licenses: []
60
58
  post_install_message:
@@ -75,7 +73,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
75
73
  version: 1.3.6
76
74
  requirements: []
77
75
  rubyforge_project: awesome_nested_fields
78
- rubygems_version: 1.6.2
76
+ rubygems_version: 1.8.10
79
77
  signing_key:
80
78
  specification_version: 3
81
79
  summary: Awesome nested fields for Rails