avo-setup 0.0.25 → 0.0.26

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/lib/.DS_Store CHANGED
Binary file
@@ -1,3 +1,3 @@
1
1
  module Avo
2
- VERSION = "0.0.25"
2
+ VERSION = "0.0.26"
3
3
  end
@@ -21,7 +21,8 @@ module Avo
21
21
  gem("cancan")
22
22
  copy_file "ability.rb", "models/ability.rb"
23
23
  @single=model_name
24
- inject_into_class "app/models/"+@single.underscore+".rb", "has_and_belongs_to_many :roles\n"
24
+ #insert_into_file "config/environment.rb", "config.gem :thor", :after => "Rails::Initializer.run do |config|\n"
25
+ inject_into_class "app/models/"+@single.underscore+".rb", model_name.camelcase, "has_and_belongs_to_many :roles\n"
25
26
  @plural=model_name.pluralize
26
27
  template "role.rb", "app/models/role.rb"
27
28
  @migname=@plural+"_roles" if (@plural.casecmp "roles")<0
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 0
8
- - 25
9
- version: 0.0.25
8
+ - 26
9
+ version: 0.0.26
10
10
  platform: ruby
11
11
  authors:
12
12
  - Avocado