make 0.2.2 → 0.2.3

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.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/make/form.rb +2 -2
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 94e51fb05511dd5fb385b04df0e350e3543529b8
4
- data.tar.gz: e5ff15d209b501c7c4bc961b9482b0cdc94ef166
3
+ metadata.gz: 61865a3ac907f64b4728d84efceaa07aea2fe97f
4
+ data.tar.gz: b82392c918b182f522d09a4afabb49ad74b85e8c
5
5
  SHA512:
6
- metadata.gz: 0ed0aabbb0b07349a7575713de4db363a9f0420c15ae360f9f61def81ce10419d3c02b769872f64ac99139471514af3d53b9bded0138967cc96ab7f2ae2c366d
7
- data.tar.gz: 8d3987794c4e5fe050e1d152678a877226aed53627dc82dc979dfef15324a6aa27bd98f36d78c5ac4ad11271c4c9429bf64988c15543e160b1e6ef0d8260475f
6
+ metadata.gz: b5c7d6c5b9ac2dfe6c99652bc90dc5fc62c47e552f562a84bcaf8bb58284f085a01286167b146f238a874c99a828637bd966905825d7f755f493ff5dfe7dc94d
7
+ data.tar.gz: cb77279d01346b1c5805584d82e1a0c6cda46a6653ae116db3072ce8b9711140a8cca39c08107bd08351d6d162fda9ae8736a7db4a201840297f8fc4d163f59f
data/lib/make/form.rb CHANGED
@@ -62,11 +62,11 @@ class Form
62
62
  if assoc #if association is checked true
63
63
  array.each do |id|
64
64
  val = column[0...-3].capitalize.constantize.find(id).attributes.values[1]
65
- input += '<option value="' + @modelName +'[' + id.to_s + ']">' + val.to_s + '</option>'
65
+ input += '<option value="' + id.to_s + '">' + val.to_s + '</option>'
66
66
  end
67
67
  else #if no associations exist for array
68
68
  array.each do |item|
69
- input += '<option value="' + @modelName +'[' + item.to_s + ']">' + item.to_s + '</option>'
69
+ input += '<option value="' + item.to_s + '">' + item.to_s + '</option>'
70
70
  end
71
71
  end
72
72
  @potential_keys_to_ignore.push(column)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: make
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.2
4
+ version: 0.2.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sara Wong