Skip to content

Commit

Permalink
Updated rbacanable gem dependecy, added elementary permissions tests
Browse files Browse the repository at this point in the history
  • Loading branch information
airhorns committed Apr 1, 2010
1 parent 91950bb commit 6a06692
Show file tree
Hide file tree
Showing 13 changed files with 56 additions and 644 deletions.
1 change: 1 addition & 0 deletions .gitignore
Expand Up @@ -4,3 +4,4 @@ doc
.DS_Store
db/*.sqlite3
.yardoc
*.tmproj
3 changes: 3 additions & 0 deletions app/models/user.rb
Expand Up @@ -5,6 +5,9 @@
class User < ActiveRecord::Base
include Canable::Actor
default_role Canable::Roles::EmployeeRole
role_proc Proc.new { |actor|
actor.role
}
acts_as_authentic do |c|
# for available options see documentation in: Authlogic::ActsAsAuthentic
end
Expand Down
2 changes: 1 addition & 1 deletion config/environment.rb
Expand Up @@ -24,7 +24,7 @@
config.gem "authlogic"
config.gem "carmen"
config.gem "simple_autocomplete"
config.gem "rbacanable", :lib => "canable"
config.gem "rbacanable", :lib => "canable", :version => "0.2.1"

# Only load the plugins named here, in the order given (default is alphabetical).
# :all can be used as a placeholder for all plugins not explicitly named
Expand Down
199 changes: 0 additions & 199 deletions config/initializers/canable.rb

This file was deleted.

1 change: 0 additions & 1 deletion db/schema.rb
Expand Up @@ -43,7 +43,6 @@
t.string "fax"
t.string "email"
t.text "notes"
t.integer "address_id"
t.integer "business_id"
t.datetime "created_at"
t.datetime "updated_at"
Expand Down

0 comments on commit 6a06692

Please sign in to comment.