simbiotes 0.1.19 → 0.1.20

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: 498e02bcab0dd26a99955b459c704e88081c5ec6
4
- data.tar.gz: 7ae3db4f1b2ca29c2f61958818a1ae42525d2e6c
3
+ metadata.gz: c2e3d308fbb56849897ea60e72ffd889cc4d65e0
4
+ data.tar.gz: 5e92fcb38e73cae17b95a33d5888a3183a0b3944
5
5
  SHA512:
6
- metadata.gz: 0add91134e76ebcaa6df2cf3a0eff25c5de701c19eec96711e9b9176e5efafa112238cc7552788967712fae66e297c8b9af60f678d8d15d8dc1840130bfb1969
7
- data.tar.gz: 6464536d3e0fb65de68abd153481c63cdfd09e2eb4cd21eba20a003c79d35edba9ecf93ae0b16cb93eebe01df04f008fd570f5b43fa1be835bb58e395d946e0e
6
+ metadata.gz: 50d0989b2d625e9ec0f94125dfbb297708bc840290cb5c4423e40a8647008d425d0af2779c87a3b33d70187f12c23e4749e6c8935ba273bb6b00711531ef151b
7
+ data.tar.gz: 0c4b9719ce2c97a11f2a10f1f78f07e157fc34e203e25f07c5c39413ba76c73a0d841171252ba23d449e8f9c8b225319228a0c9229676a88dce7950b66c87190
@@ -54,7 +54,7 @@ module <%= module_name %>
54
54
 
55
55
  # Only allow a trusted parameter "white list" through.
56
56
  def <%= module_file_name %>_params
57
- params.fetch(:<%= module_file_name %>_<%= module_file_name %>, {}).permit(:id, :simbiotes_instance<% Simbiotes.configuration.targets[module_name].keys.each do |key| %>, :<%= key.downcase %>_attributes => <%= Simbiotes.configuration.targets[module_name][key] %><% end %>)
57
+ params.fetch(:<%= module_file_name %>_<%= module_file_name %>, {}).permit(:id, :simbiotes_instance<% Simbiotes.configuration.targets[module_name].keys.each do |key| %>, :<%= key.underscore.downcase %>_attributes => <%= Simbiotes.configuration.targets[module_name][key] + ["id"] %><% end %>)
58
58
  end
59
59
  end
60
60
  end
@@ -6,10 +6,18 @@
6
6
  <%= key %>
7
7
  </th>
8
8
  <%%= form.simple_fields_for :<%= key.downcase %> do |fields| %>
9
+ <% n = 0 %>
9
10
  <% Simbiotes.configuration.targets[module_name][key].each do |interface| %>
10
- <td>
11
- <%%= fields.input :<%= interface %> %>
12
- </td>
11
+ <% if n != 0 %>
12
+ <tr>
13
+ <% end %>
14
+ <td>
15
+ <%%= fields.input :<%= interface %> %>
16
+ </td>
17
+ <% if n != 0 %>
18
+ </tr>
19
+ <% end %>
20
+ <% n += 1 %>
13
21
  <% end %>
14
22
  <%% end %>
15
23
  </tr>
@@ -60,7 +60,9 @@ module Simbiotes
60
60
  end
61
61
  object.save
62
62
  object.skip_extract = false
63
- Extract.save_log(object, interfaces, a)
63
+ unless Simbiotes.configuration.local_logging == false
64
+ Extract.save_log(object, interfaces, a)
65
+ end
64
66
  end
65
67
  end
66
68
 
@@ -1,3 +1,3 @@
1
1
  module Simbiotes
2
- VERSION = '0.1.19'
2
+ VERSION = '0.1.20'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: simbiotes
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.19
4
+ version: 0.1.20
5
5
  platform: ruby
6
6
  authors:
7
7
  - MicroArx Corporation
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-07-10 00:00:00.000000000 Z
11
+ date: 2017-07-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails