softwear-lib 1.3.5 → 1.3.6

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: e90afc76e3b1165b82d91bb760e60feb43e2cd09
4
- data.tar.gz: 12da3861f5450b3b88ac0557a56e7ad8d15f6202
3
+ metadata.gz: 40a7dae3a0baf512c764e940ad922f14efdf56c4
4
+ data.tar.gz: 002c20a8833f5b56b166e62e04ce697b5b92799d
5
5
  SHA512:
6
- metadata.gz: 5a87c65a04b1e92f2c334d1bad7449462d1aa91ada5b3a8264402150a6a3cf0f894009d819a717e7c1832fbf6ae6aaf59a500f29d3a22f8c34c708b3290103ab
7
- data.tar.gz: dd75b6dc070a46296b2e02f78de390532f0ac037ce0ebb407b1d2fc99a213739e3b2d38ec67c382c113aba5a2353a32841725bf5ae6f6ed207e12277b9806445
6
+ metadata.gz: d5345c16d42f536d00e09b82a2eab09724312994be9240f4322fe82d5529a75bf3c16ac65d933d91ee829dea0b387c436cabfb417865db969218d2dc7f5620a4
7
+ data.tar.gz: a244c9ac52bd077ccce45c8128c3f3acedb1e2cee3b3fc50e7c060728b90de7858a22bb56e368509a6b4048ce9501742e7a0fa014d96c740720e909b3d36c706
@@ -23,7 +23,7 @@ module Softwear
23
23
  yield if block_given?
24
24
 
25
25
  key_values = permitted_attributes.map do |a|
26
- [a, params[a]] if params.key?(a)
26
+ [a, params[a]] if params[a]
27
27
  end
28
28
  .compact
29
29
 
@@ -130,6 +130,10 @@ module Softwear
130
130
  def permitted_attributes
131
131
  resource_class.column_names + ['state_event']
132
132
  end
133
+
134
+ def permitted_params
135
+ { resource_class.model_name.element => permitted_attributes }
136
+ end
133
137
  end
134
138
  end
135
139
  end
@@ -1,5 +1,5 @@
1
1
  module Softwear
2
2
  module Lib
3
- VERSION = "1.3.5"
3
+ VERSION = "1.3.6"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: softwear-lib
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.5
4
+ version: 1.3.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nigel Baillie
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-09-22 00:00:00.000000000 Z
11
+ date: 2015-10-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler