lockdown 1.2.0 → 1.2.1
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/lockdown/database.rb +4 -0
- data/lib/lockdown.rb +1 -1
- metadata +2 -2
data/lib/lockdown/database.rb
CHANGED
@@ -10,6 +10,10 @@ module Lockdown
|
|
10
10
|
@permissions = Lockdown::System.get_permissions
|
11
11
|
@user_groups = Lockdown::System.get_user_groups
|
12
12
|
|
13
|
+
unless ::Permission.table_exists? && Lockdown.user_group_class.table_exists?
|
14
|
+
puts ">> Lockdown tables not found. Skipping database sync."
|
15
|
+
return
|
16
|
+
end
|
13
17
|
create_new_permissions
|
14
18
|
|
15
19
|
delete_extinct_permissions
|
data/lib/lockdown.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: lockdown
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.2.
|
4
|
+
version: 1.2.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Andrew Stone
|
@@ -9,7 +9,7 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date: 2009-08-
|
12
|
+
date: 2009-08-13 00:00:00 -04:00
|
13
13
|
default_executable:
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|