avo-setup 0.0.26 → 0.0.27

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.
@@ -1,3 +1,3 @@
1
1
  module Avo
2
- VERSION = "0.0.26"
2
+ VERSION = "0.0.27"
3
3
  end
@@ -8,16 +8,21 @@ module Avo
8
8
  if yes?("Would you like to generate a layout?")
9
9
  generate("avo:layout")
10
10
  end
11
+ if yes?("Would you like to use simple-form for form generation?")
12
+ gem("simple-form")
13
+ end
11
14
  #Devise
12
- if yes?("Would you like to install Devise?")
15
+ if yes?("Would you like to use Devise for authentication?")
13
16
  gem("devise")
14
17
  generate("devise:install")
15
18
  model_name = ask("What would you like the user model to be called? [user]")
16
19
  model_name = "user" if model_name.blank?
17
20
  generate("devise", model_name)
21
+ generate("devise:views")
22
+
18
23
 
19
24
  #CanCan
20
- if yes?("Would you like to use CanCan?")
25
+ if yes?("Would you like to use CanCan for authorization?")
21
26
  gem("cancan")
22
27
  copy_file "ability.rb", "models/ability.rb"
23
28
  @single=model_name
@@ -0,0 +1,3 @@
1
+ class Role < ActiveRecord::Base
2
+ has_and_belongs_to_many :<%= @plural.underscore %>
3
+ end
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 0
8
- - 26
9
- version: 0.0.26
8
+ - 27
9
+ version: 0.0.27
10
10
  platform: ruby
11
11
  authors:
12
12
  - Avocado
@@ -14,7 +14,7 @@ autorequire:
14
14
  bindir: bin
15
15
  cert_chain: []
16
16
 
17
- date: 2010-12-29 00:00:00 +01:00
17
+ date: 2010-12-30 00:00:00 +01:00
18
18
  default_executable:
19
19
  dependencies: []
20
20
 
@@ -42,6 +42,7 @@ files:
42
42
  - lib/generators/avo/templates/ability.rb
43
43
  - lib/generators/avo/templates/create_roles_migration.rb
44
44
  - lib/generators/avo/templates/layout.html.erb
45
+ - lib/generators/avo/templates/role.rb
45
46
  - lib/generators/avo/templates/stylesheet.css
46
47
  has_rdoc: true
47
48
  homepage: http://www.avocado.nl