avo-setup 0.0.20 → 0.0.21
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/avo-setup/version.rb +1 -1
- data/lib/generators/avo/setup_generator.rb +3 -0
- metadata +2 -2
data/lib/avo-setup/version.rb
CHANGED
@@ -20,6 +20,9 @@ module Avo
|
|
20
20
|
copy_file "ability.rb", "models/ability.rb"
|
21
21
|
@single=model_name
|
22
22
|
@plural=model_name.pluralize
|
23
|
+
@migname=@plural+"_roles" if @plural <= "roles"
|
24
|
+
@migname="roles_"+@plural if @plural > "roles"
|
25
|
+
|
23
26
|
migration_template 'create_roles_migration.rb', "db/migrate/create_roles.rb"
|
24
27
|
end
|
25
28
|
end
|