cream 0.7.7 → 0.7.8
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/cream.gemspec +1 -1
- data/lib/generators/roles/config/config_generator.rb +3 -3
- metadata +2 -2
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.7.
|
1
|
+
0.7.8
|
data/cream.gemspec
CHANGED
@@ -21,8 +21,8 @@ module Roles
|
|
21
21
|
logger.add_logfile :logfile => logfile if logfile
|
22
22
|
roles_gems if gems?
|
23
23
|
create_roles
|
24
|
-
|
25
|
-
|
24
|
+
use_roles_strategy
|
25
|
+
set_valid_roles_cream
|
26
26
|
end
|
27
27
|
|
28
28
|
protected
|
@@ -92,7 +92,7 @@ module Roles
|
|
92
92
|
user_exist?
|
93
93
|
if initializer_file? :cream
|
94
94
|
if read_model(:user) =~ /valid_roles_are/
|
95
|
-
|
95
|
+
replace_in_model :user, :where => /valid_roles_are\s+[(.*)]/, :with => 'valid_roles_are Cream.roles'
|
96
96
|
else
|
97
97
|
insert_into_model :user do
|
98
98
|
"valid_roles_are Cream::Role.available"
|