attributes_for 0.7.0 → 0.7.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +5 -0
- data/Gemfile.lock +1 -1
- data/README.md +6 -1
- data/app/helpers/attributes_for/rails/attributes_for_helper.rb +1 -0
- data/lib/attributes_for/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8de962bff191662ff09602277dce37fc68ecfaa9
|
4
|
+
data.tar.gz: 708150babbd7d135f1f577b05668b11adcc318ca
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 258e9a8bc20297e713c76ce33a20b4e6fd1231d06c96e7f6127e7eebd7868e812ed8be0ca42cc421a369b79a5823f880431e685ac3cfb18068325c88163610d9
|
7
|
+
data.tar.gz: c010404dec6ad5b1e0e0c9b51850e3e6de74a9cb6b9e67a45bdc90f443bbbb90a9071f08d59441fb64bbec527cc905118fce7fa74424b6ec33407647e839663a
|
data/CHANGELOG.md
CHANGED
@@ -1,11 +1,16 @@
|
|
1
1
|
# Changelog
|
2
2
|
|
3
|
+
## [0.7.1] - 2015-11-12
|
4
|
+
### Fixed
|
5
|
+
- Fix regression. Support `:id` option.
|
6
|
+
|
3
7
|
## [0.7.0] - 2015-11-09
|
4
8
|
### Added
|
5
9
|
- Wrap label and value in tags.
|
6
10
|
- `:defaults` options. Apply same options to all elements.
|
7
11
|
- `:wrapper` options (change default wrappers).
|
8
12
|
- `:label_html` and `:value_html` to set attributes on tags.
|
13
|
+
|
9
14
|
### Changed
|
10
15
|
- Improved implementation slightly.
|
11
16
|
|
data/Gemfile.lock
CHANGED
data/README.md
CHANGED
@@ -131,7 +131,12 @@ Passing `:empty` to `attributes_for` overrides the default empty value.
|
|
131
131
|
|
132
132
|
## Options
|
133
133
|
|
134
|
-
|
134
|
+
`#attributes_for` options:
|
135
|
+
|
136
|
+
* __:defaults__ - Use these options on all `#attribute` calls.
|
137
|
+
* __:wrappers__ - Change default wrapper tags.
|
138
|
+
|
139
|
+
`#attribute` options:
|
135
140
|
|
136
141
|
* __:label__ - Disables label if set to false
|
137
142
|
* __:css__ - Override element's CSS
|
@@ -89,6 +89,7 @@ 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)
|
92
93
|
|
93
94
|
value_html_options = {}
|
94
95
|
value_html_options = options.delete(:value_html) if options.key?(:value_html)
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: attributes_for
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.7.
|
4
|
+
version: 0.7.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ole J. Rosendahl
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-11-
|
11
|
+
date: 2015-11-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|