vue-rails-form-builder 0.8.0 → 0.8.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: aa3c6e7c44cc969b0f7f0c9622dfdd3eb317fdd8
4
- data.tar.gz: 4dd0e717fa65a2dbe708eb9700e14494fc89f70b
3
+ metadata.gz: 1c194481a63376221cdb778a8f661fcafc62fd15
4
+ data.tar.gz: 47ea7ad78d26377265b952a5e0a084151c069ec4
5
5
  SHA512:
6
- metadata.gz: 896d2262ca0bd4d6512f126a5c9be4935a72d835667b3c2abafd0a0d83edf6056be43d756326706486b190faf4f4ff1a99c26e579a43221d69928aa16a19e982
7
- data.tar.gz: 1519211c095a49275707318205e3611281ec44cd8f52f20e7cbe21ec46a1f36ce53e5d25451085b038ac316a1f15c56ff193ce48d8bbd4e870a1fdf5f4820045
6
+ metadata.gz: 0dc51b9f0c473cba2c7291913ea2710dccba2e033ee80dbecd32e6246654075dc1f99d10a8ccf933a3e1878b58653611b047329ffd0442ae0113335c2adc7b0c
7
+ data.tar.gz: 4f2526c24c4765579a2e825f618e09e334eb8f4688aefd1771ca4ef4f2319c6c0b5d052c7755c4d82f433f9cbde23daf7cfa9ac4c9ed8ffabcce653bf8dc87e6
@@ -1,5 +1,9 @@
1
1
  # CHANGELOG - vue-rails-form-builder
2
2
 
3
+ ## 0.8.1 (2018-02-15)
4
+
5
+ * Don't touch `file` fields. (#3)
6
+
3
7
  ## 0.8.0 (2017-11-11)
4
8
 
5
9
  * Add `vue_prefix` method to the form builder.
data/README.md CHANGED
@@ -252,17 +252,17 @@ This method is convenient especially when the form has nested attributes:
252
252
  <%= f.text_field :name %>
253
253
  <%= f.fields_for :emails do |g| %>
254
254
  <%= g.text_field :address,
255
- bind: { disabled: "user.emails_attributes[#{g.index}]._destroy" } %>
255
+ disabled: "user.emails_attributes[#{g.index}]._destroy" %>
256
256
  <%= g.check_box :_destroy if g.object.persisted? %>
257
257
  <% end %>
258
- <%= f.submit "Create", disabled: "user.name === ''" %>
258
+ <%= f.submit "Create", disabled: "#{f.vue_prefix}.name === ''" %>
259
259
  <% end %>
260
260
  ```
261
261
 
262
262
  Using the `vue_prefix` method, you can rewrite the fifth line more concisely:
263
263
 
264
264
  ```erb
265
- bind: { disabled: g.vue_prefix + "._destroy" } %>
265
+ disabled: g.vue_prefix + "._destroy" %>
266
266
  ```
267
267
 
268
268
  Data Initialization
@@ -4,7 +4,7 @@ module VueRailsFormBuilder
4
4
  class FormBuilder < ActionView::Helpers::FormBuilder
5
5
  include VueRailsFormBuilder::VueOptionsResolver
6
6
 
7
- (field_helpers - [:label, :check_box, :radio_button, :fields_for])
7
+ (field_helpers - [:label, :check_box, :radio_button, :fields_for, :file_field])
8
8
  .each do |selector|
9
9
  class_eval <<-RUBY_EVAL, __FILE__, __LINE__ + 1
10
10
  def #{selector}(method, options = {})
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: vue-rails-form-builder
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.0
4
+ version: 0.8.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tsutomu KURODA
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-11-11 00:00:00.000000000 Z
11
+ date: 2018-02-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: actionview