Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

use new models

  • Loading branch information...
commit 9229a148058ed91d48a7e815c68c5992bbc432b9 1 parent 2dd7061
@mkristian authored
Showing with 1 addition and 17 deletions.
  1. +1 −17 lib/ixtlan/guard/guard.rb
View
18 lib/ixtlan/guard/guard.rb
@@ -1,5 +1,5 @@
require 'ixtlan/guard/guard_config'
-require 'virtus'
+require 'ixtlan/guard/models'
module Ixtlan
module Guard
class Guard
@@ -162,21 +162,5 @@ def permissions(current_groups, &block)
perms
end
end
- class Action
- include Virtus
-
- attribute :name, String
- attribute :associations, Array[String]
- end
- class Permission
- include Virtus
-
- attribute :resource, String
- attribute :actions, Array[Action]
- attribute :deny, Boolean
- attribute :associations, Array[String]
- end
- class GuardException < Exception; end
- class PermissionDenied < GuardException; end
end
end
Please sign in to comment.
Something went wrong with that request. Please try again.