softwear-lib 1.3.12 → 1.3.13
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 +4 -4
- data/lib/softwear/lib/api_controller.rb +7 -1
- data/lib/softwear/lib/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 3b1f4276e4fb33b20f7d84a98b0c6a7dc2a831cd
|
|
4
|
+
data.tar.gz: 9c39b81dc8c6743b0a784a22822dba4eda82f657
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: a764e96e8b481a9d48c02f3611b57ef6d91978471fd9dd48c5faf7618780933451baa96632bcee27c33daed8339b144f7606f75b71526b93526c948d1bd1dabd
|
|
7
|
+
data.tar.gz: b355f311c2be574a7077087ab15b2d0fe05277f8d05341e0564ed179ec90db3c96408140f67a5201694a7db5e79f5e72c5bbc68907dcdef0577fa7819e5225c1
|
|
@@ -45,7 +45,13 @@ module Softwear
|
|
|
45
45
|
self.record = resource_class.find(params[:id])
|
|
46
46
|
|
|
47
47
|
permitted_attributes.each do |a|
|
|
48
|
-
|
|
48
|
+
begin
|
|
49
|
+
record.send("#{a}=", params[a]) if params[a]
|
|
50
|
+
rescue ActiveRecord::AssociationTypeMismatch
|
|
51
|
+
# If you try to send "job" as an attribute to order, we're assuming it's
|
|
52
|
+
# not intentional. Send "job_attributes" or update the job model separately
|
|
53
|
+
# to actually update the job.
|
|
54
|
+
end
|
|
49
55
|
end
|
|
50
56
|
|
|
51
57
|
if record.save
|
data/lib/softwear/lib/version.rb
CHANGED
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.
|
|
4
|
+
version: 1.3.13
|
|
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-
|
|
11
|
+
date: 2015-12-04 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: bundler
|