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.
@@ -1,3 +1,3 @@
1
1
  module Avo
2
- VERSION = "0.0.20"
2
+ VERSION = "0.0.21"
3
3
  end
@@ -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
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 0
8
- - 20
9
- version: 0.0.20
8
+ - 21
9
+ version: 0.0.21
10
10
  platform: ruby
11
11
  authors:
12
12
  - Avocado