role_authorization 0.3.0 → 0.3.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -24,7 +24,7 @@ module RoleAuthorization
24
24
  klass.send(:include, RoleAuthorization::Roles::Role)
25
25
 
26
26
  # now that we know what class to use, create our role groups
27
- @group_definitions.each_pair do |group_name, roles|
27
+ (@group_definitions || {}).each_pair do |group_name, roles|
28
28
  @groups[group_name.to_sym] = RoleAuthorization::Roles::RoleGroup.new(klass, roles)
29
29
  end
30
30
  end
@@ -1,3 +1,3 @@
1
1
  module RoleAuthorization
2
- VERSION = "0.3.0"
2
+ VERSION = "0.3.1"
3
3
  end
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: role_authorization
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.3.0
5
+ version: 0.3.1
6
6
  platform: ruby
7
7
  authors:
8
8
  - John 'asceth' Long
@@ -10,7 +10,7 @@ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
12
 
13
- date: 2011-03-15 00:00:00 -04:00
13
+ date: 2011-03-16 00:00:00 -04:00
14
14
  default_executable:
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency