egalite 1.2.0 → 1.2.1

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.
@@ -222,7 +222,7 @@ class FormHelper
222
222
  end
223
223
  def select_by_array(name, options, opts = {})
224
224
  optionstr = options.map {|o|
225
- (value,name) = if o.is_a?(Array)
225
+ (value,optname) = if o.is_a?(Array)
226
226
  o
227
227
  else
228
228
  [o,o]
@@ -230,7 +230,7 @@ class FormHelper
230
230
  flag = value == @data[name]
231
231
  a = {:value => value}
232
232
  a[:selected] = 'selected' if flag
233
- "#{tag_open(:option, a)}#{escape_html(name)}</option>"
233
+ "#{tag_open(:option, a)}#{escape_html(optname)}</option>"
234
234
  }.join('')
235
235
 
236
236
  raw "<select name='#{expand_name(name)}'#{opt(opts)}>#{optionstr}</select>"
@@ -1,3 +1,3 @@
1
1
  module Egalite
2
- VERSION = "1.2.0"
2
+ VERSION = "1.2.1"
3
3
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: egalite
3
3
  version: !ruby/object:Gem::Version
4
- hash: 31
4
+ hash: 29
5
5
  prerelease:
6
6
  segments:
7
7
  - 1
8
8
  - 2
9
- - 0
10
- version: 1.2.0
9
+ - 1
10
+ version: 1.2.1
11
11
  platform: ruby
12
12
  authors:
13
13
  - Shunichi Arai