access_manager 0.0.2 → 0.0.3

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: ee4af7c49f51cc85e26d6f8262e58242d37a0f8f
4
- data.tar.gz: 0a27216eb1453baa854d8ca09bc06b90b64d98f6
3
+ metadata.gz: ad0cc424f2eda502efcac8030d50dfaeaaafaeb3
4
+ data.tar.gz: b8cb5f48917126f319bffcabc43a5b915f0acd4a
5
5
  SHA512:
6
- metadata.gz: 1173c5f699a2b803fe19235feb02e919a4cdd957b336b2462303fbc7358d78004073673204ff19a8484b28368ae7ee378cc0b5238787c4de786355b258dea2db
7
- data.tar.gz: be282abe947822b875a77b18a170e5449d5860c769e4a375eb8d7ea0497290b5abb39405f0282d9e6b5663bc14c9b1bfcef3151b4ce5ff98526ea08341ff6090
6
+ metadata.gz: 13400b7662527da26e31409945bc97887fafb425462c0b7cfecc3bdab0d7e2a6b530ba13feb1de40ed3d92963e88f8e18833768c8a60419185ce824452afb8e4
7
+ data.tar.gz: 5c4c9d2683ab31a8704df25ce9a038294f46141608fc008524a21a9567d834d86193a3632c39d679effa066703e81bc6873511052e46b92293ef28233b2ec546
data/CHANGELOG.md CHANGED
@@ -5,3 +5,7 @@
5
5
  ## v0.0.2
6
6
 
7
7
  * Changed grant method name
8
+
9
+ ## v0.0.3
10
+
11
+ * Bugfix nil variable
@@ -31,6 +31,10 @@ module AccessManager
31
31
  end
32
32
 
33
33
  def access_granted?(controller, action, user_action)
34
+ if @access_tree.nil?
35
+ @access_tree = { }
36
+ end
37
+
34
38
  if @access_tree[controller.to_sym].nil?
35
39
  true
36
40
  elsif ((!@access_tree[controller.to_sym]['@all'].nil?) && @access_tree[controller.to_sym]['@all'].any?)
@@ -1,3 +1,3 @@
1
1
  module AccessManager
2
- VERSION = "0.0.2"
2
+ VERSION = "0.0.3"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: access_manager
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Matias Hick
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-12-20 00:00:00.000000000 Z
11
+ date: 2013-12-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler