generic_form_builder 0.2.0 → 0.2.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,7 +1,7 @@
1
1
  # -*- encoding: utf-8 -*-
2
2
  Gem::Specification.new do |s|
3
3
  s.name = "generic_form_builder"
4
- s.version = '0.2.0'
4
+ s.version = '0.2.1'
5
5
  s.platform = Gem::Platform::RUBY
6
6
  s.authors = ["Elliot Crosby-McCullough", "George Brocklehurst", "Elise Huard", "Tom Stuart"]
7
7
  s.email = ["elliot.cm@gmail.com"]
@@ -18,12 +18,12 @@ class GenericFormBuilder < ActionView::Helpers::FormBuilder
18
18
  end
19
19
  end
20
20
 
21
- def select(field, collection, options = {})
21
+ def select(field, collection, options = {}, html_options = {})
22
22
  label_text = options[:label] || field.to_s.humanize
23
23
  content_tag(:p, label(field, "#{label_text} #{errors_text(field)}") + super)
24
24
  end
25
25
 
26
- def collection_select(field, collection, value_method, name_method, options = {})
26
+ def collection_select(field, collection, value_method, name_method, options = {}, html_options = {})
27
27
  label_text = options[:label] || field.to_s.humanize
28
28
  content_tag(:p, label(field, "#{label_text} #{errors_text(field)}") + super(field, collection, value_method, name_method))
29
29
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: generic_form_builder
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -12,7 +12,7 @@ authors:
12
12
  autorequire:
13
13
  bindir: bin
14
14
  cert_chain: []
15
- date: 2012-02-08 00:00:00.000000000Z
15
+ date: 2012-03-06 00:00:00.000000000Z
16
16
  dependencies: []
17
17
  description:
18
18
  email: