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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 967afe8704bf64fd518b4a4b3464a46046270c1b
4
- data.tar.gz: 748a01a8d3b1dd1a8acef177f6d14c0f8c5bccef
3
+ metadata.gz: 3b1f4276e4fb33b20f7d84a98b0c6a7dc2a831cd
4
+ data.tar.gz: 9c39b81dc8c6743b0a784a22822dba4eda82f657
5
5
  SHA512:
6
- metadata.gz: bdd04dd9442316b2768f9532c302dbda84906462c02fa9e425bc0030c363c30724bb93fb0906f4bf0b0d8539cd5bf7a039e51abbd6bd51c93ef94a5c62ce79a1
7
- data.tar.gz: 62334ba5354a2b57d48dd637f5469340a803146fd6ad0d742526cd4c7ea97ee7ccfd932e4d96aec590cc885b1671def35940d5e05d895e91885bcaf709a0b381
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
- record.send("#{a}=", params[a]) if params[a]
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
@@ -1,5 +1,5 @@
1
1
  module Softwear
2
2
  module Lib
3
- VERSION = "1.3.12"
3
+ VERSION = "1.3.13"
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.12
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-20 00:00:00.000000000 Z
11
+ date: 2015-12-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler