scaffold_logic 1.7.8 → 1.7.9

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.7.8
1
+ 1.7.9
@@ -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 options[:fieldset] == false
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)
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = "scaffold_logic"
8
- s.version = "1.7.8"
8
+ s.version = "1.7.9"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Corey Ehmke"]
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: 27
4
+ hash: 25
5
5
  prerelease:
6
6
  segments:
7
7
  - 1
8
8
  - 7
9
- - 8
10
- version: 1.7.8
9
+ - 9
10
+ version: 1.7.9
11
11
  platform: ruby
12
12
  authors:
13
13
  - Corey Ehmke