scaffold_logic 1.7.8 → 1.7.9
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.
- data/VERSION +1 -1
- data/lib/scaffold_logic.rb +2 -2
- data/scaffold_logic.gemspec +1 -1
- metadata +3 -3
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.7.
|
1
|
+
1.7.9
|
data/lib/scaffold_logic.rb
CHANGED
@@ -113,7 +113,6 @@ module ScaffoldLogic
|
|
113
113
|
|
114
114
|
helpers.each do |name|
|
115
115
|
define_method(name) do |field, *args|
|
116
|
-
|
117
116
|
# capture first array as select choices
|
118
117
|
choices = args.detect{ |a| a.is_a?(Array) } || []
|
119
118
|
args.delete(choices)
|
@@ -126,6 +125,7 @@ module ScaffoldLogic
|
|
126
125
|
html_options = args.detect{ |a| a.is_a?(Hash) } || {}
|
127
126
|
args.delete(html_options)
|
128
127
|
|
128
|
+
include_fieldset = options.delete :fieldset
|
129
129
|
include_label = true
|
130
130
|
|
131
131
|
if options[:label].nil? # Not specified. Default to humanized version of field id.
|
@@ -167,7 +167,7 @@ module ScaffoldLogic
|
|
167
167
|
end
|
168
168
|
end
|
169
169
|
|
170
|
-
if
|
170
|
+
if include_fieldset == false
|
171
171
|
"#{_label}#{_field}#{_inline_label.to_s}".html_safe
|
172
172
|
else
|
173
173
|
@template.content_tag(:fieldset, "#{_label}#{_field}#{_inline_label.to_s}".html_safe)
|
data/scaffold_logic.gemspec
CHANGED
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: scaffold_logic
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 25
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 1
|
8
8
|
- 7
|
9
|
-
-
|
10
|
-
version: 1.7.
|
9
|
+
- 9
|
10
|
+
version: 1.7.9
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Corey Ehmke
|