make 0.2.6 → 0.2.7

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 +4 -4
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 06abe2e7b3c91b4d4d9f3fc8cfd8e7ad054e2bb5
4
- data.tar.gz: f77499997426dd0e9e4f2b62ea3af016c99ec0a1
3
+ metadata.gz: 4b2234e2d4176ca5874af7a9cdd95a9b63c32e10
4
+ data.tar.gz: 551c44234a30e2ca00a4838789449c734fb39645
5
5
  SHA512:
6
- metadata.gz: 0bc298e5a9e7615dc2e6d800740433f399088fb1bcf345bbb9ca5a7f9f212a0611fe412427197e56a99a8b9242a9d17785ccba4f6f02f47569f4f4ca628e8ddb
7
- data.tar.gz: a1fbd1ec1c7c47454d6da4992484c8cb33b3fa0c581ccb1b6af8cb5c9b431a98dbbf7c0f1e4b6c8380a396a844406bde3b127b764664ada84b526ea02c7d80b0
6
+ metadata.gz: 5b874eb888f4ce1d9b98951ccec327d01aa2c6fc654a6b55c9402d8ad76524ab12cf9220c32a0536731264e405e9478379f77705007a9fa24cc25cf3a250ea58
7
+ data.tar.gz: b55665fd0b928d348c6645bdf311c92c2054b19ff3d7e2461ec5a54268871611a48284808889551718058119a0046f9d4d6e67b4c7484652bf432c36cee73323
@@ -58,7 +58,7 @@ class Form
58
58
  # Similar to default, but instead of a hidden specific value you pass in an array and create a select/option field.
59
59
  def select column, array, assoc = false
60
60
  columnName = column.titleize
61
- input = "\n\t<label>" + columnName + "\n\t</label>\n\t<select name=\"" + @modelName + "['" + column + "']\">"
61
+ input = "\n\t<label>" + columnName + "\n\t</label>\n\t<select name=\"" + @modelName + "[" + column + "]\">"
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]
@@ -95,14 +95,14 @@ class Form
95
95
  # Create text input labels
96
96
  @columns.each do |column|
97
97
  if column.include? 'password'
98
- input = "\n\t<label>Password</label>\n\t<input type=\"text\" name=\"" + @modelName + "[password]\">"
98
+ input = "\n\t<label>Password</label>\n\t<input type=\"password\" name=\"" + @modelName + "[password]\">"
99
99
  @formMiddle.push(input)
100
100
  if @password_confirmation
101
- input = "\n\t<label>Confirm Password</label>\n\t<input type=\"text\"" + @modelName + "[password_confirmation]\">"
101
+ input = "\n\t<label>Confirm Password</label>\n\t<input type=\"password\" name=\"" + @modelName + "[password_confirmation]\">"
102
102
  @formMiddle.push(input)
103
103
  end
104
104
  else
105
- input = "\n\t<label>" + column.titleize + "\n\t</label>\n\t<input type=\"text\" name=\"" + @modelName + "['" + column + "']\">"
105
+ input = "\n\t<label>" + column.titleize + "\n\t</label>\n\t<input type=\"text\" name=\"" + @modelName + "[" + column + "]\">"
106
106
  @formMiddle.push(input)
107
107
  end
108
108
  end
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.6
4
+ version: 0.2.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sara Wong