softwear-lib 1.3.2 → 1.3.3

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: 18852132ef59f403e4bf39ccbfb9924d26aa7a1b
4
- data.tar.gz: 25a246735e20b6e342b804955844d0303daca545
3
+ metadata.gz: 90b6b973ae266dcf6a047a1b3dd1a3ab8c01255c
4
+ data.tar.gz: e01cf5d55c64449afa659b5ca8e23b2b41bce479
5
5
  SHA512:
6
- metadata.gz: 276834739a66871a69a863e85dcb6529f900d5c58d409ee5bd5b874f7fe13e92d31c4f9f28546906baa02de865c41103f1ea1c50df112a66f5178624e885a331
7
- data.tar.gz: 80e35e5017f1343c848ca76a650dadbaf890da1116ca890719d802b46806756c8d8938b7248e39e4c72cabef0a8afa93ed5f63f1297c2195dd384167db5c3a82
6
+ metadata.gz: 26bdbfc361d850bd9e63ef192f831dde82fe00c098df8ef9acea52f56115f353b0f7a9c1f37e5227ba4100f227c78ffbe6f0368432e0f998c3f1b268f6a1c6dc
7
+ data.tar.gz: f0f5731f024b659831011dccc0b31536d93c1415ee20d06ea63b1aed11818697f374c2c87ab44a77ea54b815a06ae9eff6c373823c0cf6da47f369ef93e0a6ad
@@ -73,7 +73,7 @@ module Softwear
73
73
  end
74
74
  rendering = {
75
75
  json: (records || record),
76
- methods: [:id] + permitted_attributes,
76
+ methods: (['id'] + permitted_attributes).uniq,
77
77
  include: includes
78
78
  }
79
79
  .merge(options)
@@ -111,7 +111,7 @@ module Softwear
111
111
  end
112
112
 
113
113
  def permitted_attributes
114
- resource_class.column_names
114
+ resource_class.column_names + ['state_event']
115
115
  end
116
116
  end
117
117
  end
@@ -1,5 +1,5 @@
1
1
  module Softwear
2
2
  module Lib
3
- VERSION = "1.3.2"
3
+ VERSION = "1.3.3"
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.2
4
+ version: 1.3.3
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-08-14 00:00:00.000000000 Z
11
+ date: 2015-09-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler