attributes_for 0.7.1 → 0.7.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 8de962bff191662ff09602277dce37fc68ecfaa9
4
- data.tar.gz: 708150babbd7d135f1f577b05668b11adcc318ca
3
+ metadata.gz: 00aeb55d1f23b3ca82711b3de794a79deae17835
4
+ data.tar.gz: 0fb48742a221eb16cabcdc2afd3a3a61fe34bd61
5
5
  SHA512:
6
- metadata.gz: 258e9a8bc20297e713c76ce33a20b4e6fd1231d06c96e7f6127e7eebd7868e812ed8be0ca42cc421a369b79a5823f880431e685ac3cfb18068325c88163610d9
7
- data.tar.gz: c010404dec6ad5b1e0e0c9b51850e3e6de74a9cb6b9e67a45bdc90f443bbbb90a9071f08d59441fb64bbec527cc905118fce7fa74424b6ec33407647e839663a
6
+ metadata.gz: 4920ba05badf40a7122c6d32610c29d00cc4f9fc34b2b5534fb4a71217773c8aeabcbce96aadcdda8200a321d9d95c0bf166b83d13c49d1ac4dda51a8f243abc
7
+ data.tar.gz: e1e3cf39d7c0e997879d2859a92afebd8eabb20c51475456f23ebdfb6903ac65eaba51df8e421fee96b722647ce201df62bb0e895998e05146420f66282a1c86
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Changelog
2
2
 
3
+ ## [0.7.2] - 2015-11-12
4
+ ### Fixed
5
+ - Set id on value element instead of label (label can be optional).
6
+
3
7
  ## [0.7.1] - 2015-11-12
4
8
  ### Fixed
5
9
  - Fix regression. Support `:id` option.
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- attributes_for (0.7.1)
4
+ attributes_for (0.7.2)
5
5
  chronic_duration (~> 0.10)
6
6
  font-awesome-rails (~> 4.0)
7
7
  phony (~> 2.0)
@@ -89,10 +89,10 @@ module AttributesFor
89
89
  def wrap_content(label, value, options)
90
90
  label_html_options = {}
91
91
  label_html_options = options.delete(:label_html) if options.key?(:label_html)
92
- label_html_options[:id] = options.delete(:id) if options.key?(:id)
93
92
 
94
93
  value_html_options = {}
95
94
  value_html_options = options.delete(:value_html) if options.key?(:value_html)
95
+ value_html_options[:id] = options.delete(:id) if options.key?(:id)
96
96
 
97
97
  content = content_tag(
98
98
  wrappers[:value],
@@ -1,3 +1,3 @@
1
1
  module AttributesFor
2
- VERSION = "0.7.1"
2
+ VERSION = "0.7.2"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: attributes_for
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.1
4
+ version: 0.7.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ole J. Rosendahl