softwear-lib 1.3.3 → 1.3.4

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 90b6b973ae266dcf6a047a1b3dd1a3ab8c01255c
4
- data.tar.gz: e01cf5d55c64449afa659b5ca8e23b2b41bce479
3
+ metadata.gz: 864b5c964defd38d95f0babe1f777872d7447a15
4
+ data.tar.gz: 81fd57e764ae6587640c8c3e440579fde2e9706d
5
5
  SHA512:
6
- metadata.gz: 26bdbfc361d850bd9e63ef192f831dde82fe00c098df8ef9acea52f56115f353b0f7a9c1f37e5227ba4100f227c78ffbe6f0368432e0f998c3f1b268f6a1c6dc
7
- data.tar.gz: f0f5731f024b659831011dccc0b31536d93c1415ee20d06ea63b1aed11818697f374c2c87ab44a77ea54b815a06ae9eff6c373823c0cf6da47f369ef93e0a6ad
6
+ metadata.gz: 67a6cf094bc25f28d52bbf4cde74b1eeb7b2098676b0274196bb257b74bf6878afcc5f507d790f3f1b8ad24952e85afce323cb58453e87821e398af59d36c782
7
+ data.tar.gz: 9ca5a860d554af59229db8f9a1b7d663f27b72b0b3592638cc97fd132d511a0494456b49f9a4eb05bab7b6ae6d546486321d5397e29338279c4cfdb39b1e737b
@@ -92,15 +92,19 @@ module Softwear
92
92
  end
93
93
 
94
94
  def records
95
- instance_variable_get("@#{self.class.model_name.underscore.pluralize}")
95
+ instance_variable_get("@#{resource_class.model_name.collection}")
96
96
  end
97
97
 
98
98
  def records=(r)
99
- instance_variable_set("@#{self.class.model_name.underscore.pluralize}", r)
99
+ instance_variable_set("@#{resource_class.model_name.collection}", r)
100
100
  end
101
101
 
102
102
  def record
103
- instance_variable_get("@#{self.class.model_name.underscore}")
103
+ instance_variable_get("@#{resource_class.model_name.element}")
104
+ end
105
+
106
+ def record=(r)
107
+ instance_variable_set("@#{resource_class.model_name.element}", r)
104
108
  end
105
109
 
106
110
  def allow_origin
@@ -1,5 +1,5 @@
1
1
  module Softwear
2
2
  module Lib
3
- VERSION = "1.3.3"
3
+ VERSION = "1.3.4"
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.3
4
+ version: 1.3.4
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-15 00:00:00.000000000 Z
11
+ date: 2015-09-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler