bsm-sso-client 0.8.0 → 0.8.1
Sign up to get free protection for your applications and to get access to all the features.
@@ -6,7 +6,7 @@ module Bsm::Sso::Client::Cached::ActiveRecord
|
|
6
6
|
include Bsm::Sso::Client::UserMethods
|
7
7
|
|
8
8
|
included do
|
9
|
-
validates
|
9
|
+
validates :id, presence: true, on: :create
|
10
10
|
end
|
11
11
|
|
12
12
|
module ClassMethods
|
@@ -28,7 +28,7 @@ module Bsm::Sso::Client::Cached::ActiveRecord
|
|
28
28
|
# Cache!
|
29
29
|
def sso_cache(resource, action = nil)
|
30
30
|
if record = where(id: resource.id).first
|
31
|
-
record.
|
31
|
+
record.attributes = resource.attributes.slice(*record.attribute_names)
|
32
32
|
record.changed? ? record.save! : record.touch
|
33
33
|
record
|
34
34
|
else
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: bsm-sso-client
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.8.
|
4
|
+
version: 0.8.1
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2013-
|
12
|
+
date: 2013-07-03 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: railties
|