rails_admin_json_editor 0.0.22 → 0.0.23

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 968f91b2616b5b8173d266e6cd6e234f6a70c26d
4
- data.tar.gz: 6055ffcb8c8b200c33d69f1a65c697b26499a67f
3
+ metadata.gz: faf0f8e4b43b5f36176e97bcb22e99defecf3069
4
+ data.tar.gz: 0ef78a75b9007a6521bf9ac1e3a2e599e060561b
5
5
  SHA512:
6
- metadata.gz: cca48806246ba0c9f448692363aac96a26261e43031a99e98e509f0d4b6c99ecd11a2755e5e119a4c145d1cbfe10980531234eeae57f13aa427b66df7ab8cbf9
7
- data.tar.gz: ad0f98bd509ea66418cf319cdfb278e18e94ce1df02a3117b393a4f7f4bcf5a1200bbb362854a6b7fa6c9765b05214910e46857e24e2636611d9cbdd9401dfa3
6
+ metadata.gz: 231f45b52ea5e337b66ea8e667df78a48b4da4c0390de6465d15fc95ed233f0729fb0df65cf102445b2f7d0ee1b881a94c5e13bcb7da3efdcddb9edc993ece58
7
+ data.tar.gz: 375b1170c81175cd18a8ac7826c7bdf609db1906a07888c229c5d98c1d08c23130aa43b5c1d713980c0432467e296fa9abf01c7825c4e43e2be539c9ba41ca04
@@ -98,7 +98,7 @@ $(document).on('rails_admin.dom_ready', function() {
98
98
  return this.component.properties &&
99
99
  this.component.properties[fieldName] &&
100
100
  this.component.properties[fieldName][recordLabel] &&
101
- this.component.properties[fieldName][recordLabel] === recordName;
101
+ this.component.properties[fieldName][recordLabel].replace(/["']/g, "") === recordName.replace(/["']/g, "");
102
102
  },
103
103
 
104
104
  nestedModelIsAllowed: function(model, allowedModels) {
@@ -134,7 +134,7 @@ $(document).on('rails_admin.dom_ready', function() {
134
134
  },
135
135
  computed: {
136
136
  result: function() {
137
- var result = { components: this.components };
137
+ var result = JSON.stringify({ components: this.components });
138
138
  $(this.$el).trigger('json-editor:changed', result);
139
139
  return result;
140
140
  }
@@ -83,7 +83,7 @@
83
83
  %>
84
84
  <% records.each do |record| %>
85
85
  <option
86
- v-attr="selected: pickerOptionIsSelected('<%= f.name %>', '<%= f.picker_label %>', '<%= record.send(f.picker_label) %>')"
86
+ v-attr="selected: pickerOptionIsSelected('<%= f.name %>', '<%= f.picker_label %>', '<%= record.send(f.picker_label).gsub(/['"]/, '') %>')"
87
87
  value="<%= record.send(f.picker_label) %>"
88
88
  data-json="<%= record.to_json %>">
89
89
  <%= record.send(f.picker_label) %>
@@ -165,7 +165,7 @@
165
165
 
166
166
  <div v-show="showJson">
167
167
  <%= form.text_area field.name,
168
- 'v-model' => 'result | json',
168
+ 'v-model' => 'result',
169
169
  value: field.value,
170
170
  ref: 'json-textarea',
171
171
  style: 'width:100%; height:400px; margin-top:20px' %>
@@ -1,3 +1,3 @@
1
1
  module RailsAdminJsonEditor
2
- VERSION = "0.0.22"
2
+ VERSION = "0.0.23"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rails_admin_json_editor
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.22
4
+ version: 0.0.23
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jasper Haggenburg
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-03-31 00:00:00.000000000 Z
11
+ date: 2015-04-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler