aptible-rails 0.5.1 → 0.5.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/aptible/rails/decorators/user_decorator.rb +8 -0
- data/lib/aptible/rails/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: 6cccfe5c580a32c6cbf26317d23ac83a518571a2
|
4
|
+
data.tar.gz: cf53e57846bffcb4fa582fbe9e4bd9185a827c23
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 20b9b406eed403e662e423ee81c7a94e31a97b39009c465bd0fef6af583270b0a8690dd790fcf147ecf8b9d3c0813e37636378d9e542535bf771195b0efd6314
|
7
|
+
data.tar.gz: 12ef5c2f1f536586565b187cd73c60fcdaf91cd369b08291c3827a940a230de7e1354aa3b87b78ee31d05ce46d95345efa0655e14f435b03aa2b5e7f2aebf992
|
@@ -23,6 +23,14 @@ class UserDecorator < ApplicationDecorator
|
|
23
23
|
end
|
24
24
|
end
|
25
25
|
|
26
|
+
def cached_organization_roles(organization)
|
27
|
+
garner.bind(h.controller.session_token)
|
28
|
+
.bind(organization)
|
29
|
+
.bind(object) do
|
30
|
+
object.organization_roles(organization)
|
31
|
+
end
|
32
|
+
end
|
33
|
+
|
26
34
|
def cached_permissions
|
27
35
|
garner.bind(h.controller.session_token) do
|
28
36
|
permissions = []
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: aptible-rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.5.
|
4
|
+
version: 0.5.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Frank Macreery
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-08-
|
11
|
+
date: 2014-08-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: gem_config
|